PDA

View Full Version : Help with java project for a beginner programmer


rkrajnov
03-05-2010, 05:47 PM
Hi,

I'm new to coding and what not. And honestly what we're doing right now is confusing the hell out of me. We are working with concurrency and mainly focusing on threads and synchronization right now. That is the basis for the project we are doing. However, I can not figure out where to even start this project at. I am so confused as to how I should implement methods or threads or synchronization to make it work. I really could use a push in the right direction. Being a school project how I do it is also very specific. We are given some code, and most of what we have to change or work on is in just a couple files of this code labeled by comments stating TODO.

Anyhow here is the link to the instructions (code is in a zip file inside):
http://web.ics.purdue.edu/~cs180/Spring2010Web/

I'm not asking anyone to do this for me, but if someone could just read over the instructions (the relevant parts are not that long) and take a look at the code (once again relevant parts are only a small section) and give me an idea of where I should go with this or how I should implement these features properly as to get the correct result it would be greatly appreciated. I would think that for someone more experienced than myself, this would be a breeze, so it would really be doing me a lot of help at not too much of a cost. If you got 15 or 20 minutes to spare please take a look. Certain things that are confusing me are how the concurrenthashmap's work (as in their use and what not) and how I should use synchronization to lock a method so that no one else can reserve a ticket thats already being reserved. I understand that synchronization is object based, but what object determines this (i'm assuming I need to lock the particular ticket object but how do i do that?). Anything else would be helpful as well.

Thanks in advance.