Unit 2 - Operating System Structures
Unit 2 - Operating System Structures
• Information Maintenance
•
open( )
The read() system call is used to access data from a file that is
stored in the file system. The file to read can be identified by
its file descriptor and it should be opened using open() before
it can be read. In general, the read() system calls takes three
arguments i.e. the file descriptor, buffer which stores read data
and number of bytes to be read from the file.
write( )
• It helps to create new files in computer system and placing them at specific
locations.
• It makes process of sharing of files among different users very easy and user
friendly.
Categories of System Programs
• It helps to stores files in separate folders known as directories.
•
System Structure
The design of an operating system architecture traditionally follows
the separation of concerns principle. This principle suggests
structuring the operating system into relatively independent parts
that provide simple individual features, thus keeping the complexity
of the design manageable.
System Structure
• The operating system possesses various privileges that allow it to access
otherwise protected resources such as physical devices or application memory.
When these privileges are granted to the individual parts of the operating system
that require them, rather than to the operating system as a whole, the potential for
both accidental and malicious privileges misuse is reduced.
• Breaking the operating system into parts can have adverse effect on efficiency
because of the overhead associated with communication between the individual
parts. This overhead can be exacerbated when coupled with hardware
mechanisms used to grant privileges.
Monolithic System
Layered Systems
• Containers are like VMs, except that they only virtualize the operating
system, rather than the rest of the underlying hardware. Containers
contain the code, system tools, runtime, system libraries and settings
needed for multiple applications. That's why containers are often used
when multiple applications using the same operating system are
needed. Containers are used to create cloud-native , distributed
applications, and to package legacy applications for increased
portability and deployment simplicity. One of the leading container
developers as of mid-2019 was Docker, which first arrived in the
market in 2013 as a Linux-based container platform.
Virtual Machines