CH1 - basic Flashcards
Introduction (46 cards)
What is an operating system?
A program that acts as an intermediary between a user of a computer and the computer hardware.
List the goals of an operating system.
- Execute user programs and make solving user problems easier
- Make the computer system convenient to use
- Use the computer hardware in an efficient manner
What are the four components of a computer system?
- Hardware
- Operating system
- Application programs
- Users
What is the role of the operating system in resource management?
The operating system is a resource manager that efficiently allocates and controls hardware resources, such as the CPU, memory, storage, and I/O devices. It also acts as a control program, managing the execution of user programs, ensuring security, handling process scheduling, and facilitating communication between hardware and software.
What is the difference between user mode and kernel mode?
User mode restricts access to certain resources, while kernel mode has full access to all hardware resources.
גישה למשאבים ולא לפונקציות
What is a bootstrap program?
A simple code to initialize the system, load the kernel.
לא להדליק את המחשב, אלא לאתחל את המערכת ולטעון את הגרעין
What is the function of an interrupt in an operating system?
An interrupt is a signal sent to the CPU by hardware or software to indicate that immediate attention is needed. It temporarily halts the execution of the current process, transfers control to the appropriate interrupt service routine (ISR), and allows the system to handle time-sensitive events such as I/O operations, timer signals, and process scheduling.
מנגנון שמאפשר למעבד להשהות משימה אחת כדי לטפל באירוע חיצוני או פנימי.
Define ‘process’ in the context of an operating system.
A process is a program in execution, an active entity that needs resources to accomplish its task.
What is multiprogramming?
Multiprogramming organizes jobs so the CPU always has one to execute, allowing multiple jobs to be in memory at the same time.
תהליכים לא יכולים לרוץ באותו זמן, אבל כן יכול להיות שכמה תהליכים בזיכרון באותו זמן
What does the term ‘virtual memory’ refer to?
Virtual memory is a memory management technique that provides each process with its own isolated address space, allowing it to execute even if it is not fully loaded into physical RAM. The OS and hardware use paging or segmentation to map virtual addresses to physical memory, enabling better memory utilization, isolation between processes, and support for larger address spaces than physically available RAM.
What is the purpose of a device driver?
To bridge between the operating system and hardware devices, providing a uniform interface.
תוכנה המתווכת בין מערכת ההפעלה לבין חומרת המחשב
This allows the OS and software to interact with the device in a consistent way, regardless of the specific hardware being used.
What is meant by the term ‘file-system management’?
File-System Management (ניהול מערכת קבצים) הוא רכיב במערכת ההפעלה שמנהל את אחסון, הארגון, הגישה והאבטחה של קבצים ותיקיות באמצעי אחסון שונים.
Fill in the blank: The basic unit of computer storage is the _______.
bit
What is the storage hierarchy?
A system organized based on speed, cost, and volatility.
What is caching?
Copying information into a faster storage system to improve access speed.
What is the role of the I/O subsystem in an operating system?
To manage memory for I/O, including buffering, caching, and spooling.
What is protection in the context of operating systems?
Any mechanism for controlling access of processes or users to resources defined by the OS.
True or False: The kernel is the only program running at all times on the computer.
True
What is a system call?
A system call is a way the process can ask the operating system to do privileged functions, like file access, memory allocation, I/O…
So the OS can handle these requests in kernel mode
What is a trap or exception?
A software-generated interrupt caused by an error or a user request.
What is the purpose of a timer in an operating system?
To prevent infinite loops or resource hogging by interrupting the process after a set time.
what are primary and secondary storages?
Primary storage is volatile and directly accessible by the CPU, while secondary storage is non-volatile and provides larger capacity.
What is the primary focus of security in computer systems?
Defense of the system against internal and external attacks
What are some examples of security threats?
- Denial-of-service
- Worms
- Viruses
- Identity theft
- Theft of service