Skip to content

Espeto/thread-queue-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Priority Queue Thread Simulator

Implemented for the class of Operational Systems

Description

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:

  1. Creation of a new thread with pt_spawn();
  2. Termination of a thread; and
  3. 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())

Referencies

📝 License

This project is under the MIT license. See the file LICENSE for more details.

About

Priority queue thread simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •