processes.xps Flashcards
Early computer system allowed only…?
one program to be executed at a time. This program had complete control of the system and had access to all the system’s resources.
Current day computer system allow…?
multiple programs to be loaded into memory and executed concurrently. This evolution required firmer control and more compartmentalization of the various programs, and these needs resulted in the notion of a process.
A process is …?
a program in execution . A process is the unit of work in a modern time-sharing system.
The more complex the OS is, the more it is…?
expected to do.
its main concern is …?
the execution of user programs, it also needs to take care of various system tasks that are better left outside the kernel itself.
A system consists of a…?
collection of processes.
(OS processes executing system code and user processes executing user code.)
Potentially, all these processes can execute concurrently, with the CPU (or CPUs) multiplexed among them.
By switching the CPU between process, the OS can make the computer…?
more productive.
A batch system executes jobs, whereas a time-shared system has…?
user programs, or tasks. Even on a single-user system such as the original MS Windows, a user may be able to run several programs at one time: a word processor, a Web browser, and an e-mail package. And even if the user can execute only one program at a time, the OS may need to support its own internal programmed activities, such as memory management. In many respect, all these activities are similar, so we call all of them processes.
The terms job and process are used almost interchangeably in this text. Although we personally prefer the term process, much of OS theory and terminology was developed during a time when the major activity of OSs was job processing. It would be misleading to avoid the use of commonly accepted terms that include the word job (such as job scheduling) simply because process has superseded job.
A process is more than the program code, which is sometimes known as the…?
text section.
Processes also includes the current activity, as represented by the value of….?
the program counter and the contents of the processor’s registers.
A process generally also includes the process stack, which contains…?
temporary data (such as function parameters, return addresses, and local variables), and a data section, which contains global variables.
A process may also include a heap, which is…?
memory that is dynamically allocated during process run time.
We emphasize that a program by itself is not a…?
process.
A program is a …?
pass entity, such as a file containing a list of instructions stored on disk (often called an executable file), where as a process is an active entity, with a program counter specifying the next instruction to execute a set of associated resources.
A program becomes a process when an…?
executable file is loaded into memory.
Two common techniques for loading executable files are …?
double clicking an icon representing the executable file and entering the name of the executable file on the command line (as in prog.exe or a.out)