WRITE IN C– NOT C PLEASE
(include comments too so that I can understand whatyoure doing)
1.- In this assignment you will implement a simulation of theinteraction of user programs with the OS to execute an I/Ooperation.
User programs:
User programs will communicate with DOIO (OS) to request an I/Ooperation. (this will simulate a system call)
User programs will give to DOIO two parameters: User id and anaddress (addr is a random number in the range 1 and 20.) (addr isan integer that represents a track number in the hard drive).
User programs will pass the parameters to DOIO through twobuffers of size one each (bufid
OR
OR