Changes between Version 8 and Version 9 of PTVS_Impl


Ignore:
Timestamp:
Jan 13, 2010, 11:35:31 PM (14 years ago)
Author:
sinziana.mazilu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PTVS_Impl

    v8 v9  
    3838We chose to implement the best idea from those 3: a work-pool for each intersection.
    3939
    40 A thread-pool with executors is created:
     401. A thread-pool with executors is created:
    4141               '' public ExecutorService executor[];''
    4242
    43 Each intersection will be assigned to a single executor (each executor will be a single thread):
     432. Each intersection will be assigned to a single executor (each executor will be a single thread):
    4444                ''numThreads=intersectii.size();''
    4545                               
     
    4949                        ''executor[i] = Executors.newFixedThreadPool(1);''
    5050                ''}''
     51
     523. Find the index of the closest intersection on the same road for the car.
     53
     544. Assign the event to the thread of intersection
     55
     56Notice: Because of testing issues (we won't have as mush processors as intersections on a simulation machine), and because fep has 8 processors,
     57we decided to to limit the number of threads for all intersections (7 processors), the 8th one being assigned for GPS and Clear Events.
     58Each event will be computed by the 'NoIntersection % 7' thread.