انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

(Process Management(Continued

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 4
أستاذ المادة مهدي نصيف جاسم الشمري       4/13/2011 6:35:10 AM

Process Management (continued)

Process Termination

 

To eliminate deadlocks by aborting a process, we use one of two methods. In both

methods, the system reclaims all resources allocated to the terminated processes.

Abort all deadlocked processes: This method clearly will break the

deadlock cycle, but at great expense; the deadlocked processes may have

computed for a long time, and the results of these partial computations must be

discarded and probably will have to be recomputed later.

Abort one process at a time until the deadlock cycle is eliminated: This

method incurs considerable overhead, since, after each process is aborted, a

deadlock-detection algorithm must be invoked to determine whether any

processes are still deadlocked. Aborting a process may not be easy. If the process was

in the midst of updating a file, terminating it will leave that file in an incorrect state.

Similarly, if the process was in the midst of printing data on a printer, the system must

reset the printer to a correct state before printing the next job. If the partial termination method is

used, then we must determine which deadlocked process (or processes) should be

terminated. This determination is a policy decision, similar to CPU-scheduling decisions.

The question is basically an economic one; we should abort those processes whose termination

 will incur the minimum cost. Unfortunately, the term minimum cost is not a precise one.

Many factors may affect which process is chosen, including:

1. What the priority of the process is

2. How long the process has computed and how much longer the process will

compute before completing its designated task

3. How many and what type of resources the process has used (for example,

whether the resources are simple to preempt)

4. How many more resources the process needs in order to complete

5. How many processes will need to be terminated

6. Whether the process is interactive or batch

 


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم