CH1 - basic Flashcards

Introduction (46 cards)

1
Q

What is an operating system?

A

A program that acts as an intermediary between a user of a computer and the computer hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List the goals of an operating system.

A
  • Execute user programs and make solving user problems easier
  • Make the computer system convenient to use
  • Use the computer hardware in an efficient manner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four components of a computer system?

A
  • Hardware
  • Operating system
  • Application programs
  • Users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of the operating system in resource management?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between user mode and kernel mode?

A

User mode restricts access to certain resources, while kernel mode has full access to all hardware resources.

גישה למשאבים ולא לפונקציות

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a bootstrap program?

A

A simple code to initialize the system, load the kernel.

לא להדליק את המחשב, אלא לאתחל את המערכת ולטעון את הגרעין

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the function of an interrupt in an operating system?

A

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.

מנגנון שמאפשר למעבד להשהות משימה אחת כדי לטפל באירוע חיצוני או פנימי.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define ‘process’ in the context of an operating system.

A

A process is a program in execution, an active entity that needs resources to accomplish its task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is multiprogramming?

A

Multiprogramming organizes jobs so the CPU always has one to execute, allowing multiple jobs to be in memory at the same time.

תהליכים לא יכולים לרוץ באותו זמן, אבל כן יכול להיות שכמה תהליכים בזיכרון באותו זמן

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the term ‘virtual memory’ refer to?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of a device driver?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is meant by the term ‘file-system management’?

A

File-System Management (ניהול מערכת קבצים) הוא רכיב במערכת ההפעלה שמנהל את אחסון, הארגון, הגישה והאבטחה של קבצים ותיקיות באמצעי אחסון שונים.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Fill in the blank: The basic unit of computer storage is the _______.

A

bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the storage hierarchy?

A

A system organized based on speed, cost, and volatility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is caching?

A

Copying information into a faster storage system to improve access speed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the role of the I/O subsystem in an operating system?

A

To manage memory for I/O, including buffering, caching, and spooling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is protection in the context of operating systems?

A

Any mechanism for controlling access of processes or users to resources defined by the OS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

True or False: The kernel is the only program running at all times on the computer.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is a system call?

A

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

20
Q

What is a trap or exception?

A

A software-generated interrupt caused by an error or a user request.

21
Q

What is the purpose of a timer in an operating system?

A

To prevent infinite loops or resource hogging by interrupting the process after a set time.

22
Q

what are primary and secondary storages?

A

Primary storage is volatile and directly accessible by the CPU, while secondary storage is non-volatile and provides larger capacity.

23
Q

What is the primary focus of security in computer systems?

A

Defense of the system against internal and external attacks

24
Q

What are some examples of security threats?

A
  • Denial-of-service
  • Worms
  • Viruses
  • Identity theft
  • Theft of service
25
What is a user ID?
A unique identifier associated with a user, including a name and an associated number
26
What is privilege escalation?
Allows a user to change to an effective ID with more rights
27
What does virtualization allow?
Operating systems to run applications within other OSes
28
What is emulation?
In Operating Systems, emulation refers to the process where the OS (or a program running on it) allows code meant for one type of hardware or OS to run on another.
29
What is the fastest method of running applications in virtualization?
Virtualization with OS natively compiled for CPU
30
What does VMM stand for?
Virtual Machine Manager
31
What is a local area network (LAN)?
A network that connects computers within a limited area
32
What is a wide area network (WAN)?
A network that covers a broad area, often connecting multiple LANs
33
What are the advantages of multiprocessor systems?
**Advantages of Multiprocessor Systems:** Higher Performance: Tasks run in parallel, speeding up execution and improving throughput. Fault Tolerance: One processor failing doesn't crash the system. Scalability: Easily add processors to meet growing demands. Efficient Resource & Power Use: Better utilization of hardware and lower energy consumption. Support for Complex Workloads: Ideal for large-scale, demanding applications.
34
What is asymmetric multiprocessing?
Each processor is assigned a specific task
35
What is symmetric multiprocessing?
Each processor performs all tasks
36
What is a clustered system?
Multiple systems working together, usually sharing storage
37
to delete
to delete
38
What distinguishes real-time embedded systems?
Systems that must respond to inputs or events within strict time constraints. | Example: A car’s airbag must deploy immediately during a crash.
39
What is a kernel data structure?
It’s a data structure used by the OS kernel to track and manage resources like processes, memory, files, and devices. ## Footnote 💡 Think of it like this: The kernel is the brain of the OS, and these data structures are how it keeps track of everything: 🧠 Process Control Blocks (PCB) – store info about each running process 🧮 Page tables – manage memory 📁 File descriptors – track open files 🎛️ Device tables – manage hardware devices 🔄 Scheduler queues – handle process scheduling
40
What is a binary search tree's search performance?
O(n) for unbalanced, O(lg n) for balanced
41
What does a hash function create?
A hash map
42
What is a bitmap in kernel data structures?
A string of n binary digits representing the status of n items
43
What is the significance of load balancers in cloud computing?
They spread traffic across multiple applications
44
What is the role of a network operating system?
Provides features for systems to communicate across a network
45
What is the difference between client-server and peer-to-peer computing?
Client-server distinguishes between clients and servers, while P2P does not
46
What is the function of a compute-server system?
Provides an interface for clients to request services