Skip to content

Parallelization

sy133 edited this page Aug 23, 2017 · 12 revisions

Description

To find the optimal solution, 1 - 4 processors can be used.
The number of cores are defined as a parameter (default is sequential)

Solution

  1. Sequential start up
  2. Allocation to threads/processors
    • Balancing using round robin technique
  3. Find sub-optimal solution for each thread
  4. Cut thread when sub-optimal solution found
  5. After all threads finish, compare sub-optimal solution to find optimal

Details

  • Using ParallelTask
  • After thread finds sub-optimal solution, help other threads find theirs.
    • This can be done using the WorkStealingQueue Class - When a thread has finished, steal a PS from another thread
  • Ignore sub-partial solution if end time > existing sub-optimal solution - move onto next in queue.
  • Don't add sub-partial solution into queue if end time > existing sub-optimal solution.
  • Decide how to distribute global processing (master thread) e.g. visualisation

Experimenting

  • Find best time for sequential to parallel turning point
  • Whether placing all promising partial solutions in one thread and worst in another is better with respect to last 2 points in Details

Clone this wiki locally