D686 - Operating Systems - Chapter 4

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

30 Terms

1
New cards

single-threaded

A process or program that has only one thread of control (and so executes on only one core at a time).

2
New cards

multithreaded

A term describing a process or program with multiple threads of control, allowing multiple simultaneous execution points.

3
New cards

user thread

A thread running in user mode.

4
New cards

kernel threads

Threads running in kernel mode.

5
New cards

thread control block (TCB)

a data structure in an operating system that stores information about a thread, including its identifier, state, CPU information, priority, and pointers to related threads

6
New cards

thread ID

unique identifier assigned to a thread by the operating system

7
New cards

thread state

the current condition or status of a thread in the system (e.g., running, waiting, blocked)

8
New cards

register contents

the current values stored in the CPU registers used by the thread

9
New cards

thread priority

the assigned importance level of a thread, determining its scheduling order compared to other threads

10
New cards

multicore

refers to a CPU architecture that integrates multiple processing cores onto a single chip, or within a single system, enabling parallel execution of tasks

11
New cards

data parallelism

a computational technique where subsets of identical data are distributed across multiple processing cores, each core performing the same operation simultaneously on its subset of data

12
New cards

task parallelism

a computational approach where tasks or threads are distributed across multiple processing cores, with each task executing a unique operation independently, often on different or related data sets

13
New cards

fork()

a system call that creates a new process by duplicating the existing process

14
New cards

exec()

a system call that replaces the current process with a new program

15
New cards

signal

a way to alert a process about an event

16
New cards

default signal handler

the built-in handler for signals unless a process uses its own

17
New cards

pthread_kill()

a function in the POSIX threads (Pthreads) library used to send a signal to a specific thread within the same process

18
New cards

asynchronous procedure call (APC)

a function a thread sets to run when it gets a certain notice

19
New cards

thread cancellation

ending a thread before it finishes

20
New cards

pthread_cancel()

a function that requests the cancellation of a specific thread in Pthreads

21
New cards

What is the role of a process in a computer system?

Executing user and system tasks

22
New cards

Which state is a process when it is paused and is not currently being executed?

Waiting

23
New cards

How does a context switch impact CPU performance?

It temporarily suspends the current process to switch to another.

24
New cards

What is the purpose of scheduling queues in process management?

To manage the order of process execution

25
New cards

What is the result of a fork() system call in Unix?

Creation of a child process

26
New cards

Which mechanism allows processes to work together without interfering with each other?

Communication through interprocess mechanisms

27
New cards

Which method involves processes exchanging data by sending and receiving messages?

Message passing

28
New cards

How does synchronization ensure proper process execution?

By preventing simultaneous access to shared resources

29
New cards

Which type of thread is managed directly by the operating system?

Kernel-level

30
New cards

What is a significant advantage of using multithreading in applications?

It increases responsiveness and resource sharing.