Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 2.02 KB

README.md

File metadata and controls

46 lines (31 loc) · 2.02 KB

Description

It's a concurrent priority list with 10 priorities-ranks and random tasks.

Commands

  • aw - Add new Worker
  • lw - List all active worker
  • kill {WorkerId} - Exit a worker thread with the id
  • killAll - Exit all worker threads
  • assT {WorkerId} {Taskdifficult} {X} {Y} - Assigne a task to a worker
  • addT {TaskType} {Taskdifficult} {priority} {X} {Y} - Adds a task to the list
  • lt - lists all task types
  • sp {TaskType} {number from 0-9} - sets the priority of a task type
  • ww {WorkerId} - Activate the logging of a worker
  • uww {WorkerId} - Deactivate the logging of a worker
  • waw - Activate the logging of all worker
  • uaw - Deactivate the logging of all worker
  • ctl - Clear the whole task list
  • exit - Exit the program

How it works

alt text

Some values

With a 4 core cpu and 32 threads

picture of distribution of duties on a 4 core cpu

With a 12 core cpu and 32 threads

picture of distribution of duties on a 12 core cpu

Posibilities of every priority

picture of posibilities of every priority

Posibilities of every priority in test

picture of posibilities of every priority in test

Documentation