FlashKeepers

Computer Science · College · College and University

Operating Systems, Unit 2: Processes and Threads

Operating Systems, unit: Processes and Threads. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

About this set

38 basic cards for College Computer Science. Set 2 of 8 in Operating Systems. It opens with "What is a process?" and "What is the difference between a program and a process?". Study it alongside the other College sets below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a process?
Show answerA program in execution, with its own memory space and resources
What is the difference between a program and a process?
Show answerA program is static code on disk; a process is that program actively running in memory
What is a process control block (PCB)?
Show answerA data structure the OS uses to store information about a specific process
What information does a PCB typically store?
Show answerProcess state, program counter, CPU registers, memory limits, and scheduling information
What are the typical states of a process?
Show answerNew, ready, running, waiting (blocked), and terminated
What is context switching?
Show answerSaving one process's state and loading another's, allowing the CPU to switch between them
What is a thread?
Show answerA lightweight unit of execution within a process, sharing the process's memory space
What is the main difference between a process and a thread?
Show answerProcesses have separate memory spaces; threads within the same process share memory
What is multithreading?
Show answerRunning multiple threads within a single process concurrently
What is the advantage of using threads instead of separate processes?
Show answerThreads are lighter weight and can share data more easily and efficiently
What is a race condition?
Show answerA bug where the outcome depends on the unpredictable timing of concurrent operations
What is inter-process communication (IPC)?
Show answerMechanisms allowing separate processes to exchange data and synchronize
What are common IPC mechanisms?
Show answerPipes, message queues, shared memory, and sockets
What is a pipe, as an IPC mechanism?
Show answerA unidirectional channel allowing one process to send data to another
What is shared memory, as an IPC mechanism?
Show answerA region of memory accessible by multiple processes for fast data exchange

23 more cards in the app

Study this set free