Consider A File Namedshared Datathat Is To Be Shared By A Set Ofrreaders However We 2708149

  1. Consider a file namedshared_datathat is to be shared by a set ofrreaders. However, we assume that the readers cannot read the datadirectlyfrom the file. Instead, each reader can only read the content of theshared_datafrom ashared memoryarea called data_buffer. For simplicity, assume theshared_datacontains onlydintegers, i.e., a sequence (1, 2, 3, …,d), and thedata_bufferis an array ofbintegers, forb=d. To test your program, you can set the constantsd= 100 andb= 20.