Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Operating System Notes

Rating
-
Sold
-
Pages
15
Uploaded on
15-05-2023
Written in
2022/2023

My document focuses on the topic of operating systems. It provides information and insights into the fundamental aspects and functionalities of operating systems, which are the software that manage and control computer hardware resources. The document covers various key components of an operating system, such as the kernel, file system, process management, and memory management. It also delves into important concepts like multitasking, security, and networking within an operating system environment. Additionally, the document discusses the different types of user interfaces, including the command line interface and graphical user interface. It addresses aspects such as compatibility, updates, and system requirements, which are crucial considerations when working with operating systems. Overall, the document serves as a comprehensive resource for understanding the fundamentals and inner workings of operating systems.

Show more Read less
Institution
Course

Content preview

Deadlock in Operating
System
Definition

A set of two or more processes are deadlocked if they are blocked (i.e., in the waiting state) each
holding a resource and waiting to acquire a resource held by another process in the set.

or

A process is deadlocked if it is waiting for an event which is never going to happen.




Example:

a system has two tape drives
two processes are deadlocked if each holds one tape drive and has requested the other


Example: semaphores A and B, each initialized to 1:
P_0 P_1
--- ---
A. wait(); B.wait();
B. wait(); A.wait();
A. signal(); B.signal();
B. signal(); A.signal();

Deadlock depends on the dynamics of the execution.
Illustrates that it is difficult to identify and test for deadlocks which may occur only under certain
circumstances.

System model:

resource types: R1, R2, ..., Rn
each resource R has Wi instances
each process utilizes a resource as follows:

// request (e.g., open() system call)
// use
// release (e.g., close() system call)

1/14

, Any instance of a resource type can be used to satisfy a request of that resource.


Conditions Necessary for Deadlock

All of the following four necessary conditions must hold simultaneously for deadlock to occur:

mutual exclusion: only one process can use a resource at a time.




2/14

Written for

Institution
Course

Document information

Uploaded on
May 15, 2023
Number of pages
15
Written in
2022/2023
Type
Class notes
Professor(s)
....
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
omaryan5251

Get to know the seller

Seller avatar
omaryan5251 Lovely Professional University
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions