Expand description

Process management syscalls

Structs

Task information

Functions

YOUR JOB: get time with second and microsecond HINT: You might reimplement it with virtual memory management. HINT: What if TimeVal is splitted by two pages ?

YOUR JOB: Implement mmap.

YOUR JOB: Implement munmap.

change data segment size

YOUR JOB: Implement spawn. HINT: fork + exec =/= spawn

YOUR JOB: Finish sys_task_info to pass testcases HINT: You might reimplement it with virtual memory management. HINT: What if TaskInfo is splitted by two pages ?

If there is not a child process whose pid is same as given, return -1. Else if there is a child process but it is still running, return -2.