Changes between Version 4 and Version 5 of PTVS_Impl
- Timestamp:
- Jan 13, 2010, 11:13:10 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PTVS_Impl
v4 v5 32 32 33 33 We have a vector of threads and the index of the closest intersection becomes the index of the processing thread. The thread calls the playEvent() method like the main thread did before. 34 35 36 == Final implementation == 37 38 We chose to implement the best idea from those 3: a work-pool for each intersection. 39 40 A thread-pool with executors is created: 41 public ExecutorService executor[];