السلام عليكم ورحمة الله وبركاته
اخواني الاعزاء ارجو منكم المساعده في كتابة هذا البرنامج وانا لااطلب منكم ذلك لكسل مني او اهمال او عدم محاوله لا والله ولكن ماطلب مني اكبر بكثير من مستواي فارجو منكم مساعدتي في كتابة البرنامج او على الاقل اعطاء افكار للحل
وشكرا لكم
البرنامج المطلوب :
Write a high level program (using any programming languages that you prefer, e.g., C,
C++, Java etc.) to simulate one of the schemes used for CPU scheduling, i.e., First-
Come-First-Serve (FCFS), Shortest-Job-First (SJF), or Round-Robin (RR). Your program
should create a queue of jobs and select these jobs for the CPU based on the scheme you
choose. Your program should compute the average waiting time. The output (may be to
output file) is a line containing the order of processes with their time in the CPU.
Hint
- use a arrays (for bounded buffer) or lined-list (for unbounded buffer) to
simulate the queue
- use the random generator (e.g., rand() function for C/C++) to generate jobs
arrival, required CPU time, priority .. etc.
- use loop to simulate for a slot of time
ولكم تحياتي