Operating Systems: - Chapter 1
Operating Systems: - Chapter 1
Operating Systems: - Chapter 1
• Chapter 1:
1- What’s the operating system?
➢ It’s a software program that acts as an intermediate layer between the
computer’s hardware and the user.
2- What are the goals of the operating system? (The main purposes)
➢ Uses the computer hardware in an efficient manner. (Manage resources)
➢ Provides an interface for users to make the computer convenient to use.
➢ Enable communication between the hardware and software.
➢ Execute user programs and make solving user problems easier.
3- Draw the computer system structure and discuss its components.
➢ Computer system can be divided into four components:
1- Hardware → as CPU, Memory, I/O devices, etc.
2- Operating System → as Linux, Windows, etc.
3- Application programs → as compliers, web browsers, games, etc.
4- Users → as people, machines, etc.
➢ Here’s the view of those 4 components:
4- What’s the kernel and mention its main purpose?
➢ The kernel is the central component of the operating system which runs all
the time on the computer.
➢ Its primary purpose is to control and allocate system resources, manage
memory, and provide a level of security to the system.
➢ It’s responsible for performing basic operations as process management,
scheduling, memory management, file management, and I/O operations.
5- What’s the difference between system programs and application programs?
➢ System programs → are associated with the operating system but not a
part of the kernel as device drivers, compliers, firmware as BIOS, etc.
➢ Application programs → are all other programs that aren’t associated with
the operating system as web browsers, spreadsheets, media players, etc.
6- What’s the purpose of interrupt and how it differs from the trap?
Interrupt Trap
• It’s a signal sent by hardware to • It’s an exception raised by a
the CPU to indicate that a software that’s caused by a
problem has occurred, usually specific instruction in the
sent through the bus system. program.
• The software may trigger an • It may be caused either by an
interrupt by executing a special error occurred or user’s request.
operation called system call.
Client-Server Peer-to-Peer
• It’s one powerful server • It consists of nodes that can act
providing services to other as both clients and servers.
computers (clients). • Low cost but hard to manage.
• High cost but easy to manage. • Used in small networks only.
• Used in small and large • The software is installed in every
networks. computer.
• The software is installed only in
the server and shared among
the clients.