Question: Please do this in C language . I must have this 3 files , init. c , cpu_emulator. c , scheduler.c Thank you. init process

Please do this in C language. I must have this 3 files, init.c , cpu_emulator.c , scheduler.c

Thank you.

Please do this in C language. I must have this 3 files,

init.c , cpu_emulator.c , scheduler.c Thank you. init process fork0 fork0 exec)

init process fork0 fork0 exec) data sendo emulator process scheduler process send0 recvo data Implement the CPU emulator, which simply receives PCB information, decrements the number of remaining CPU cycles of the PCB by a fixed amount, and sends it back to the scheduler. Implement the scheduler, which reads process data from a file, adds the processes to a queue, then pops the front, sends it to the CPU, receives process data back from the CPU, and appends the process to the back of the queue (if it has not completed yet) Notes: write the CPU emulator, the scheduler, and init processes must be written in C init must use forkO and exec0. For now, we will use blocking IPC- which means your program will stop when waiting for an incoming message. Later, we'll look at non-blocking IPC, which is a little more complicated. init process fork0 fork0 exec) data sendo emulator process scheduler process send0 recvo data Implement the CPU emulator, which simply receives PCB information, decrements the number of remaining CPU cycles of the PCB by a fixed amount, and sends it back to the scheduler. Implement the scheduler, which reads process data from a file, adds the processes to a queue, then pops the front, sends it to the CPU, receives process data back from the CPU, and appends the process to the back of the queue (if it has not completed yet) Notes: write the CPU emulator, the scheduler, and init processes must be written in C init must use forkO and exec0. For now, we will use blocking IPC- which means your program will stop when waiting for an incoming message. Later, we'll look at non-blocking IPC, which is a little more complicated

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!