الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ابي المساعده في حل هذا البرنامج بلغه ++C

مغلق
بدأه النوايف في 5 نوفمبر 2004 · 1 رد · 482 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

شباب هذا هو السؤال

What is this about?

For this programming assignment; we are going to implement the round-robin scheduling technique (Program in C++) and study the effects of varying time quantums

What to do?

Round-Robin Scheduling algorithm implementation needs a circular queue. Your main job in this project would be to implement the circular queue. Read data from a modifiable text file; load into the circular queue. The time-slice would be a start-up parameter issued by the user. Calculate the waiting times for each process and the average waiting time for all of the processes to get served. Your program must read time quantum <an integer> at the command line. Process CPU burst time must vary between [0-100]

Hints:

1. Implement a circular queue. Each node of the queue would have two attributes (1. Process burst time, 2. Pointer). Your program should be able to read 100 processes from file!

2. Make a text file with data arranged. Your text file may look like this

3. Read time slice as a commandline input eg ([Linux % user] RRP 4)..4 is the timeslice

4. Read the text file at the start of [RRP] and fill your circular queue. Make a node in the queue for each process read from file.

5. While traversing through the queue for each process "being processed" decrease the process time (P time - time_slice). if process time is <0 delete the node.

6. Calculate the Waiting time for each process. Then find the average waiting time. Display these values.

What to turn in:

1. C++ program complete compilable and without any errors.

2. A Report discussing the effects of different time-quantums on same data. (2-3 pages) preferably containing a graph illustrating the analysis of your results. Use the following time quantums [1 2 4 8 16 32 64 128]. Attach a sheet of your data.

الملف this

موجود في المرفقات

شباب تكفون ابيكم تساعدوني بكتابه هذا البرنامج

واذا فيه اي استفسار انا حاضر

this.txt

تم تعديل هذه المشاركة بواسطة النوايف في 5 نوفمبر 2004 في 18:37

#2

تم إغلاق المشاركة لأننا وضحنا بأن يكون عنوان المشاركة يوضح المضمون .

banner_60_468.gif

NOTHING IS IMPOSSIBLE

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…