Skip to content

ChuWeiChang/Scheduler_Simulator

Repository files navigation

OS2021_Hw3

Objective

  • Understand how to implement a user-level thread scheduler
  • Understand how to implement signal handler
  • Understand how to realize asy./deferred thread cancellation

Compile

make simulator

Execute

./simulator

See thread info

Ctrl+Z

Input file format

To initialize a new thread(modified in init_threads.json), you must assign

  • name
  • entry function(defined in function_libary.c)
  • priority(H, M or L)
  • cancel mode(1 for deferred cancellation type, 0 for asynchronous cancellation type)
Format
{   
        "name" : "f1",  
	"entry function" : "Function1",  
	"priority": "M",  
	"cancel mode": "1"  
}  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors