|
INTERVIEW QUESTIONS
OPERATING SYSTEMS
WINDOWS OPERATING SYSTEM
DETAILS
Question: What is a Safe State and its’ use in deadlock avoidance?
Answer: When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state ->System is in safe state if there exists a safe sequence of all processes. ->Sequence <P1, P2… Pn> is safe if for each Pi, the resources that Pi can still request can be satisfied by currently available resources + resources held by all the Pj, with j<I. If Pi resource needs are not immediately available, then Pi can wait until all Pj have finished. When Pj is finished, Pi can obtain needed resources, execute, return allocated resources, and terminate. When Pi terminates, Pi+1 can obtain its needed resources, and so on. ->Deadlock Avoidance Þ ensure that a system will never enter an unsafe state.
|
|
|
Category |
Windows Operating System Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 9318 users |
Added on |
10/25/2009 |
Views |
75939 |
Rate it! |
|
|
Question:
What is a Safe State and its’ use in deadlock avoidance?
Answer:
When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state ->System is in safe state if there exists a safe sequence of all processes. ->Sequence <P1, P2… Pn> is safe if for each Pi, the resources that Pi can still request can be satisfied by currently available resources + resources held by all the Pj, with j<I. If Pi resource needs are not immediately available, then Pi can wait until all Pj have finished. When Pj is finished, Pi can obtain needed resources, execute, return allocated resources, and terminate. When Pi terminates, Pi+1 can obtain its needed resources, and so on. ->Deadlock Avoidance Þ ensure that a system will never enter an unsafe state. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Deadlock Detection-Algorithm Usage?
|
View Answer
|
|
Recovery from Deadlock?
|
View Answer
|
|
Difference between Logical and Physical Address Space?
|
View Answer
|
|
Binding of Instructions and Data to Memory?
|
View Answer
|
|
What is Memory-Management Unit (MMU)?
|
View Answer
|
|
What are Dynamic Loading, Dynamic Linking and Overlays?
|
View Answer
|
|
what are the different Dynamic Storage-Allocation methods?
|
View Answer
|
|
What is fragmentation? Different types of fragmentation?
|
View Answer
|
|
Define Demand Paging, Page fault interrupt, and Trashing?
|
View Answer
|
|
Explain Segmentation with paging?
|
View Answer
|
|
Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs?
|
View Answer
|
|
What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?
|
View Answer
|
|
Why are page sizes always powers of 2?
|
View Answer
|
|
On a system with paging, a process cannot access memory that it does not own; why? How could the operating system allow access to other memory? Why should it or should it not?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Windows Operating System Interview Questions & Answers - Exam Mode /
Learning Mode
|