answersLogoWhite

0


Best Answer

Structure of an Operating System

An operating system is composed of a kernel, possibly some servers, and posssibly some user-level libraries. The kernel provides operating system services through a set of procedures, which may be invoked by user processes through system calls. System calls look like procedure calls when they appear in a program, but transfer control to the kernel when they are invoked at run time. ( read is an example of a system call in Unix.)

In some operating systems, the kernel and user-processes run in a single (physical or virtual) address space. In these systems, a system call is simply a procedure call. In more robust systems, the kernel runs in its own address space and in a special privileged mode in which it can execute instructions not available to ordinary user processes. In such systems, a system call invokes a trap as discussed below.

A trap is a hardware event that invokes a trap handler in the kernel. The trap indicates, in appropriate hardware status fields, the kind of trap. Traps may be generated implicitly by the hardware to signal events such as division by zero and address faults (which we will discuss later), or explicitly by a process when it executes a special instruction. Explicit or user-initiated traps are used to handle system calls. A system call stores the name of the call and its arguments on the stack and generates a user-initiated trap. The trap handler in the kernel knows, from the type of the trap, that it is a user-initiated trap asking for a system call, finds the name of the systems call, and calls the appropriate kernel procedure to handle the call passing it the arguments stored on the stack.

We will later consider the various techniques for structuring the kernel. As we shall see, kernels may be layered, object-oriented, or decomposed into kernel processes.

Not all operating services have to be provided by the kernel. Modern operating systems also define servers, which are user processes that offer operating system services to other processes. These services are invoked by clients through interprocess communication (IPC) primitives. We shall see later the rationale for transferring functionality from the kernel to servers. We shall also see the minimum functionality that needs to be supported in the kernel. In micorkernel-based systems, the kernel provides this minimum functionality.

The cost of invoking system calls and IPC primitives is more than the cost of invoking a simple procedure call when multiple address spaces are supported by the system. Therefore, as we shall see later, some of the traditional OS functionality is sometimes also provided by user-level libraries.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain layered structure in operating system?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a layered structure?

In an operating system a layered structure is composed of a kernel, some servers, and some user level libraries. All of these put together are a layered structure.


What is structure layer?

In an operating system a layered structure is composed of a kernel, some servers, and some user level libraries. All of these put together are a layered structure.


What is an operating system Explain different components of the operating system in detail?

explain the different components of operating system in details


Why do the planets in the solar system have a layered internal structure?

The gasses from urnanus


Explain in briefly on the classification of operation of operating system?

1. What are the two kinds of installation of an operating system? Explain Briefly.


Explain all types of operating system with diagram?

There are basically four types of operating systems. They include Batch Operating System, Multiprogramming Operating System, Network Operating System and Distributed Operating System.


Structure of RTOS?

Structure of real time operating system


Explain network operating system?

An operating system which is run on server but is assessed/interacted with by a terminal.


What impact does an organization's operating system have on its structure?

The structure of an organizations operating system is really impacted by the philosophy of the way an organization wishes to "operate". The two concepts are intertwined, and subject to change. In some circumstances, the structure of an organization can be changed based on the performance of its operating system. A break down in the operating system may cause the organizations structure to be changed.


What do you mean by operating system structure?

operating system is nothing but a communication medium between computer system and users.


What are the monolithic systems layered virtual machines and client server models in an operating system?

the space marhines


Name and explain five resources of an Operating System?

name and explain five categories of opareting system