In this work, a library of user-level threads with priorities will be developed. The user can create threads with different priorities (where 1 is the highest priority). Scaling is by priority with FCFS queues for wach priority.
The user defines the number of virtual processors (system thread) that will be used.
The events that can generate a thread scalation are:
- Creation of a new thread with pt_spawn();
- Termination of a thread; and
- Call pt_yield()
To create a thread the user must pass the thread's priority, the function to be executed and a pointer to the arguments (as in pthread_create())
This project is under the MIT license. See the file LICENSE for more details.