Professional Documents
Culture Documents
Os Operating System
Os Operating System
1.)OPERATING SYSTEM:
3.)SYSTEM TYPES:
4.)COMPONENTS OF SYSTEM:
The components of an operating system play a key role to make a variety of computer system parts work together.
There are the following components of an operating system, such as:
1. Process Management-The process management component is a procedure for managing many processes
running simultaneously on the operating system.
2. File Management-A file is a set of related information defined by its creator
3. Network Management-Network management is the process of administering and managing computer networks.
4. Main Memory Management-Main memory is a large array of storage or bytes, which has an address.
5. Secondary Storage Management-The most important task of a computer system is to execute programs.
6. I/O Device Management-One of the important use of an operating system that helps to hide the variations of
specific hardware devices from the user.
7. Security Management-The various processes in an operating system need to be secured from other activities.
8. Command Interpreter System-One of the most important components of an operating system is its command
interpreter
5.)
6.)OPERATING SYSTEM SERVERCIES:
The operating system may be implemented with the assistance of several structures. The structure of the operating
system is mostly determined by how the many common components of the OS are integrated and merged into the
kernel. In this article, you will learn the following structure of the OS. Various structures are used in the design of the
operating system. These structures are as follows:
Simple Structure- There are many operating systems that have a rather simple structure. These started as small systems
and rapidly expanded much further than their scope. A common example of this is MS-DOS.
Micro-Kernel Structure- This micro-kernel structure creates the OS by eliminating all non-essential kernel components
and implementing them as user programs and systems. Therefore, a smaller kernel is known as a micro-kernel.
Layered Structure-One way to achieve modularity in the operating system is the layered approach. In this, the bottom
layer is the hardware and the topmost layer is the user interface.
As seen from the image, each upper layer is built on the bottom layer. All the layers hide some structures, operations etc
from their upper layers.
One problem with the layered structure is that each layer needs to be carefully defined
6.)DEADLOCKS:
A Deadlock is a situation where each of the computer process waits for a resource which is being assigned to some
another process. In this situation, none of the process gets executed since the resource it needs, is held by some other
process which is also waiting for some other resource to be released.
Let us assume that there are three processes P1, P2 and P3. There are three different resources R1, R2 and R3. R1 is
assigned to P1, R2 is assigned to P2 and R3 is assigned to P3.
After some time, P1 demands for R1 which is being used by P2. P1 halts its execution since it can't complete without R2.
P2 also demands for R3 which is being used by P3. P2 also stops its execution because it can't continue without R3. P3
also demands for R1 which is being used by P1 therefore P3 also stops its execution.
Processes extecuting conncurently in the operating system may be either independent process or cooperating
processes.
• A process is independent if it cannot affect or be affected by the other processes executing in the system.
• A process is cooperating if it can affect or be affected by the other processes executing in the system. Clearly,
any process that shares data with other processes is a cooperating process
Cooperating processes require an interprocess communication (IPC) mechanism that will allow them to exchange data
and information. There are two fundamental models of interprocess communication: shared memory and message
passing.
Shared-Memory Systems Interprocess communication using shared memory requires communicating processes to
establish a region of shared memory
Message passing provides a mechanism to allow processes to communicate and to synchronize their actions without
sharing the same address space. It is particularly useful in a distributed environment. A message-passing facility provides
at least two operations:
send(message) receive(message)
If processes P and Q want to communicate, they must send messages to and receive messages from each other: a
communication link must exist between them. This link can be implemented in a variety of ways. We are concerned here
not with the link’s physical implementation but rather with its logical implementation. Here are several methods for
logically implementing a link and the send()/receive() operations:
Naming
Processes that want to communicate must have a way to refer to each other. They can use either direct or indirect
communication. Under direct communication, each process that wants to communicate must explicitly name the
recipient or sender of the communication. In this scheme, the send() and receive() primitives are defined as:
• A link is established automatically between every pair of processes that want to communicate. The processes need to
know only each other’s identity to communicate.
OPERATIONS: create new mailbox->send and receive messages through mailbox->destroy a mailbox
Synchronization
Communication between processes takes place through calls to send() and receive() primitives. There are different
design options for implementing each primitive. Message passing may be either blocking or nonblocking also known as
synchronous and asynchronous.
• Blocking send. The sending process is blocked until the message is received by the receiving process or by the mailbox.
• Nonblocking send. The sending process sends the message and resumes operation.
Buffering:
Buffering Whether communication is direct or indirect, messages exchanged by communicating processes reside in a
temporary queue. Basically, such queues can be implemented in three ways
• Zero capacity. The queue has a maximum length of zero; no message are queue on a link
• Bounded capacity. The queue has finite length n; thus, at most n messages can reside in it.
• Unbounded capacity. The queue’s length is potentially infinite; thus, any number of messages can wait in it. The
sender never blocks.