[cs33211] Os project question

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Oct 11 23:29:32 EDT 2012


> I'm confused with this whole threading thing. Are we opening the data file
> in the main() and then starting a thread for each individual object that
> enters the construction zone? Or are we running three threads, opening the
> data file inside each of those and running while loops until the end of
> file.

One thread per traffic participant. A pedestrian thread should run
pedestrian() function. A car going West thread should run carWest()
function and a car going east -- carEast() function.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list