قديم منذ /26-04-2017, 09:19 PM   #51

طالب جديد

otacon غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 17959
 تاريخ الإنتساب : Oct 2015
 مقر الإقامة : Unaizah
 فرع الجامعة : فرع القصيم
 التخصص : بكالوريوس الحوسبه والمعلوماتية
 المستوى : المستوى الثالث
 المشاركات : 19
 الجنس : ذكر
 مستوى التقييم : otacon is on a distinguished road
النقاط : 0

شكراً: 1
تم شكره 15 مرة في 4 مشاركة
افتراضي


Meaning of Thrashing


If the process does not have number of frames it needs to support pages in active use, it will quickly page-fault. The high paging activity is called thrashing.

In other words we can say that when page fault ratio decreases below level, it is called thrashing.

Causes of Thrashing


It result in severe performance problems.

1) If CPU utilization is too low then we increase the degree of multiprogramming by introducing a new process to the system. A global page replacement algorithm is used. The CPU scheduler sees the decreasing CPU utilization and increases the degree of multiprogramming.

2) CPU utilization is plotted against the degree of multiprogramming.

3) As the degree of multiprogramming increases, CPU utilization also increases.

4) If the degree of multiprogramming is increased further, thrashing sets in and CPU utilization drops sharply.

5) So, at this point, to increase CPU utilization and to stop thrashing, we must decrease the degree of multiprogramming.

How to prevent Thrashing


We must provide a process with as many frames as it needs. Several techniques are used.

The Working of Set Model (Strategy) It starts by looking at how many frames a process is actually using. This defines the locality model.

Locality Model It states that as a process executes, it moves from locality to locality.

A locality is a set of pages that are actively used together.

A program is generally composed of several different localities which overlap.








التوقيع
ثق بأن الله ميزك بقدرات تختلف عن غيرك، ومهم أن تثق بنفسك، وتؤمن بقدراتك، ولو قال الناس عنك ما قالوا. امض قدماً ولا تلتفت.

@absu91
  رد مع اقتباس

قديم منذ /26-04-2017, 09:47 PM   #52

طالب جديد

M_M غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 27195
 تاريخ الإنتساب : Mar 2017
 المشاركات : 22
 الجنس : أنثى
 مستوى التقييم : M_M is on a distinguished road
النقاط : 0

شكراً: 0
تم شكره 0 مرة في 0 مشاركة
افتراضي


اقتباس:
المشاركة الأصلية كتبت بواسطة san مشاهدة المشاركة
تفضل :


0-1-1-9-10-12-14-42-80-81-82-99


fcfs:
Distance = 13+11+3+71+1+80+81+72+32=364

scan:
Distance = 2+2+1+8+0+1+42+38+1+1=96
شكرا جزيلا
يعطيك العافيه







  رد مع اقتباس
قديم منذ /28-04-2017, 07:33 PM   #53

طالب جديد

azizalateeq غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 18677
 تاريخ الإنتساب : Nov 2015
 المشاركات : 18
 الجنس : ذكر
 مستوى التقييم : azizalateeq is on a distinguished road
النقاط : 0

شكراً: 4
تم شكره 5 مرة في 2 مشاركة
افتراضي


اقتباس:
المشاركة الأصلية كتبت بواسطة ali.jassim مشاهدة المشاركة
السؤال الثاني : Fcfs
انا حليته وطلع كذا لي الحل .. هل احد حاول يحل ؟


fcfs

the pending requests are processed in the following order:
1
12
9
80
81
1
82
10
42


distance (in cylinders) from cylinder 14 to cylinder 1 = (1-14) = -13

distance (in cylinders) from cylinder 12 to cylinder 9 = (9-12) = -3

distance (in cylinders) from cylinder 9 to cylinder 80 = (80-9) = 71

distance (in cylinders) from cylinder 80 to cylinder 81 = (81-80) = 1

distance (in cylinders) from cylinder 81 to cylinder 1 = (1-81) = -80

distance (in cylinders) from cylinder 1 to cylinder 82 = (82-1) = 81

distance (in cylinders) from cylinder 82 to cylinder 10 = (10-82) = -72

distance (in cylinders) from cylinder 10 to cylinder 42 = (42-10) = 32



total distance =13+3+71+1+80+81+72+32 = 353


اتوقع مافي اختلاف بالحل الا اذا كانت طريقتي خطأ ... فهل احد يرد علي . الي فاهم الطريقة !



طريقة scan ما استوعبتها .. هل ممكن احد يحلها ... لا تخافوا من موضوع الغش .. اصلا هذه اشياء ثوابت ارقام !:d

القيمة المطلقه مافيها سالب (-)
والناتج عندك نفس الناتج عندي







  رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة