Intro Flashcards

(39 cards)

1
Q

What distinguishes symmetric multiprocessing (SMP) from asymmetric multiprocessing?

A

In SMP, each processor performs all tasks; in asymmetric multiprocessing, each processor is assigned specific tasks.

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

How does resource utilization concern differ between users and shared computer systems?

A

Users typically do not care about resource utilization, whereas shared systems like mainframes must optimize it for all users.

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

What is a clustered system and what are its typical features?

A

Multiple systems working together, sharing storage via SAN, providing high availability and often supporting parallel applications.

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

How does a virtual memory system enhance process execution?

A

It allows processes to run even if not fully in physical memory by swapping parts in and out.

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

What is dual-mode operation in an operating system and why is it important?

A

It distinguishes user mode from kernel mode, protecting system integrity by restricting privileged instructions.

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

What is the difference between hardware and software interrupts?

A

Hardware interrupts are triggered by devices to signal events, while software interrupts are caused by software errors or requests for OS services.

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

What is the purpose of setting a counter with a privileged instruction in an operating system?

A

It initializes a timer that, when reaching zero, generates an interrupt to regain control or terminate a process.

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

What are the main activities involved in process management?

A

Creating and deleting processes, suspending and resuming processes, and providing mechanisms for synchronization, communication, and deadlock handling.

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

How does the timer facilitate process management?

A

It interrupts processes after a set time to prevent hogging resources, enabling time-sharing and process switching.

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

What is the function of the operating system’s I/O structure following I/O initiation?

A

Control returns to the user program upon I/O completion or without waiting, using system calls and device-status tables.

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

What are the benefits of multiprocessor systems?

A

Increased throughput, economy of scale, and higher reliability through fault tolerance.

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

How do device controllers and the CPU communicate during I/O operations?

A

Device controllers manage specific devices with local buffers, and the CPU transfers data to/from these buffers, receiving interrupts upon completion.

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

What activities are involved in memory management?

A

Tracking memory usage, deciding what to load/unload, and allocating/deallocating memory as needed.

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

What is a clustered system and how does it operate?

A

A clustered system involves multiple interconnected computers sharing storage and resources for high availability and performance.

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

Why is dual-mode operation important in an operating system?

A

It protects system integrity by allowing privileged instructions to execute only in kernel mode, preventing user processes from causing system errors.

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

Define a process in the context of operating system management.

A

A program in execution, active and requiring resources like CPU, memory, I/O, and files.

17
Q

What is mass-storage management and why is it important?

A

It manages disks and tertiary storage to ensure data is stored efficiently and access speeds are optimized, impacting overall system performance.

18
Q

What are the primary goals of an operating system from a user’s perspective?

A

To provide convenience, ease of use, and good performance.

19
Q

How does the operating system use the counter to manage process scheduling?

A

It sets the counter before scheduling to ensure processes do not exceed their allotted time, triggering an interrupt when it reaches zero.

20
Q

What is an interrupt and how does it function in an operating system?

A

An interrupt transfers control to an interrupt service routine, allowing the OS to respond to hardware or software events asynchronously.

21
Q

What is the difference between a single-threaded and a multi-threaded process?

A

A single-threaded process has one program counter and executes instructions sequentially, while a multi-threaded process has multiple program counters, allowing concurrent execution within the same process.

22
Q

How does virtual memory improve process execution?

A

It allows processes to run even if their entire memory image isn’t in physical memory by using disk space to simulate additional memory.

23
Q

What is the role of the kernel in an operating system?

A

The kernel is the one program running at all times, managing core system functions and resources.

24
Q

What is loaded during computer startup and where is it stored?

A

The bootstrap program, stored in ROM or EPROM, initializes the system and loads the OS kernel.

25
Describe the basic components of a computer system in terms of organization.
Hardware (CPU, memory, I/O devices), operating system, application programs, and users.
26
What is the difference between single-threaded and multi-threaded processes?
Single-threaded processes have one program counter, executing instructions sequentially, while multi-threaded processes have multiple threads with separate program counters.
27
What are the differences between hardware and software interrupts?
Hardware interrupts are triggered by devices, while software interrupts (traps/exceptions) are caused by errors or user requests.
28
What is the purpose of mass-storage management in an operating system?
To manage disks and secondary storage, providing a logical view of storage, and handling file creation, deletion, and scheduling.
29
What is the role of storage management in an operating system?
It provides a logical view of storage, manages files and directories, maps files onto secondary storage, and handles backups.
30
How does the operating system manage memory during process execution?
It tracks memory usage, decides what to move in and out of memory, and allocates/deallocates memory as needed to optimize CPU utilization and response time.
31
What is the purpose of a system timer in operating systems?
To prevent processes from hogging resources by interrupting the system after a set time, enabling multitasking.
32
What are the two modes of operation supported by most CPUs for system protection?
User mode and kernel mode, distinguished by a mode bit, with privileged instructions only executable in kernel mode.
33
What mechanisms does an operating system use to handle different types of interrupts?
It saves CPU state, identifies interrupt type via polling or vectored system, and executes specific code segments for each.
34
What occurs during a system call as illustrated in the flowchart?
The mode bit changes from user mode to kernel mode, allowing the OS to execute privileged operations, then returns to user mode after completion.
35
What are the key benefits of multiprocessor (parallel) systems?
Increased throughput, economy of scale, and higher reliability through fault tolerance.
36
What is a process in operating system terms?
A process is a program in execution, an active entity that requires resources like CPU, memory, and I/O to perform its tasks.
37
What distinguishes symmetric multiprocessing (SMP) from asymmetric multiprocessing?
In SMP, each processor performs all tasks with equal access to shared memory, whereas in asymmetric multiprocessing, each processor is assigned specific tasks.
38
What happens after I/O starts in the OS's I/O structure?
Control returns to the user program either upon I/O completion or without waiting, often via system calls for synchronization.
39
What is the function of the mode bit in CPU operation?
It indicates whether the CPU is in user mode or kernel mode, controlling access to privileged instructions.