Introductio To Os
Introductio To Os
1. Memory Management
It keeps track of primary memory, i.e., which bytes of memory are used by
which user program. The memory addresses that have already been
allocated and the memory addresses of the memory that has not yet been
used.
In multiprogramming, the OS decides the order in which processes are
granted memory access, and for how long.
It Allocates the memory to a process when the process requests it and
deallocates the memory when the process has terminated or is performing
an I/O operation.
2. Processor Management
In a multi-programming environment, the OS decides the order in which
processes have access to the processor, and how much processing time
each process has.
This function of OS is called Process Scheduling.
An operating system manages the processor’s work by allocating various
jobs to it and ensuring that each process receives enough time from the
processor to function properly.
Keeps track of the status of processes.
Allocates the processor to a process. De-allocates processor when a process
is no longer required.
3. Device Management
Keeps track of all devices connected to the system.
Decide which process gets access to a certain device and for how long.
Allocates devices effectively and efficiently. Deallocates devices when they
are no longer required.
There are various input and output devices. An OS controls the working of
these input-output devices.
It receives the requests from these devices, performs a specific task, and
communicates back to the requesting process.
4. File Management
It keeps track of where information is stored, user access settings, the status
of every file.
These facilities are collectively known as the file system.
An OS keeps track of information regarding the creation, deletion, transfer,
copy, and storage of files in an organized way.
It also maintains the integrity of the data stored in these files, including the
file directory structure, by protecting against unauthorized access.
Advantages
Provides the advantage of quick response.
Avoids duplication of software.
Reduces CPU idle time.
Disadvantages
Problem of reliability.
Question of security and integrity of user programs and data.
Problem of data communication.
Soft real-time systems are less restrictive. A critical real-time task gets
priority over other tasks and retains the priority until it completes. Soft real-
time systems have limited utility than hard real-time systems. For example,
multimedia, virtual reality, Advanced Scientific Projects like undersea
exploration and planetary
Before the operating system concept, only one program was to be loaded
at a time and run.
These systems were not efficient as the CPU was not used efficiently. For
example, in a single-tasking system, the CPU is not used if the current
program waits for some input/output to finish.
The user gets the feeling that he/she can run multiple applications on a
single CPU even if the CPU is running one process at a time.
All modern operating systems like MS Windows, Linux, etc are
multiprogramming operating systems.
System Calls in OS
CreateProcess()
Process
ExitProcess()
Control
WaitForSingleObject()
CreateFile()
File
ReadFile()
manipulation
WriteFile()
Device SetConsoleMode()
Management
Process System Call
ReadConsole()
WriteConsole()
GetCurrentProcessID()
Information
SetTimer()
Maintenance
Sleep()
CreatePipe()
Communicati
CreateFileMapping()
on
MapViewOfFile()
Protection SetFileSecurity()
InitializeSecurityDescript
or()
SetSecurityDescriptorgro
up()
Spooling
Booting
Booting is basically the process of starting the computer. When the CPU is first
switched on it has nothing inside the Memory. In order to start the Computer,
load the Operating System into the Main Memory and then Computer is ready
to take commands from the User.
Booting happens when you start the computer. This happens when we turned
ON the power or the computer restarts. The system BIOS (Basic Input/Output
System) makes the peripheral devices active. Further, it requires that the boot
device loads the operating system into the main memory.
Questions
1. Define operating? Explain different types of operating system.
2. Explain the different functions of operating system?
3. Explain System calls.
4. Explain the structure of operating system.
5. Explain the storage structure of operating system.
6. Define a)Spooling b)Booting c)Buffer
7. Expand a) BIOS b) SPOOL
**********************