- Understand how to implement a user-level thread scheduler
- Understand how to implement signal handler
- Understand how to realize asy./deferred thread cancellation
make simulator
./simulator
Ctrl+Z
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)
{
"name" : "f1",
"entry function" : "Function1",
"priority": "M",
"cancel mode": "1"
}