Skip to content

.27 Write a program in C which reads input CPU bursts from a the first line of a text file named as CPU_BURST.txt. Validate the input numbers whether the numbers are positive integers or not. Consider the numbers as CPU burst. If there are 5 positive integers in the first line of the text file then the program treat those argument as required CP…

License

Notifications You must be signed in to change notification settings

Jay11702715/OS-project

Repository files navigation

simulation_operating_system

There are 3 student processes and 1 teacher process. Students are supposed to do their assignments and they need 3 things for that pen, paper and question paper. The teacher has an infinite supply of all the three things. One student has pen and other has paper and another has question paper. The teacher places two things on a shared table and the student having the third complementary thing makes the assignment and tells the teacher on completion. The teacher then places another two things out of the three and again the student having the third thing makes the assignment and tells the teacher on completion. This cycle continues. WAP to synchronize the teacher and the students.

About

.27 Write a program in C which reads input CPU bursts from a the first line of a text file named as CPU_BURST.txt. Validate the input numbers whether the numbers are positive integers or not. Consider the numbers as CPU burst. If there are 5 positive integers in the first line of the text file then the program treat those argument as required CP…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages