Chapter 3 Flashcards
Define a process
a program in execution, unit of work in a modern time-sharing system, sometimes known as text section, represents current activity with program counter, contents of processor’s registers, includes process stack, a data section, may include a heap, and performs single thread of execution
A system consists of a collection of process and different codes are associated to different thing. what is OS and user associated with?
system code and user code
what does the batch system execute
jobs
what does a time-sharing system execute
user programs or tasks
when does a program become a process
when an executable file is loaded into memory
name a couple of states of a process
new, running, waiting, ready, terminated
what is PCB
process control block
define program counter
address of next instruction to be executed
define cpu registers
different type of registers, when an interrupt occurs the status info is saved
define cpu-scheduling information
process priority pointers to scheduling queues
define memory management information
value of base, limit registers, page tables, etc.
define accounting information
amount of CPU information and real-time used, time limits account numbers, etc
define I/O status information
list of I/O devices allowed to process, etc.
describe single thread in 5 words
one task at a time
define multiprogramming objective
some process running at all times, to maximize cpu utilization
define time-sharing objective
switch cpu among processes so frequently that users can interact with each program while it is running
define process scheduler
selects available process for program execution on the cpu
define batch system and process
more processes are submitted that can be executed immediately, then spooled to a mass-storage device, where they are kept for later execution. then long-term scheduler selects processes from this pool and loads into memory for execution. short-term scheduler selects from among processes that are ready to execute and allocates cpu to one of them
what is the difference between job and cpu scheduler
frequency of execution
define short-term scheduler
cpu scheduler, more frequent, fast, selects from ready state and allocated cpu to one of them