processes.xps Flashcards

1
Q

Early computer system allowed only…?

A

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.

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

Current day computer system allow…?

A

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.

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

A process is …?

A

a program in execution . A process is the unit of work in a modern time-sharing system.

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

The more complex the OS is, the more it is…?

A

expected to do.

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

its main concern is …?

A

the execution of user programs, it also needs to take care of various system tasks that are better left outside the kernel itself.

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

A system consists of a…?

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.

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

By switching the CPU between process, the OS can make the computer…?

A

more productive.

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

A batch system executes jobs, whereas a time-shared system has…?

A

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.

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

A process is more than the program code, which is sometimes known as the…?

A

text section.

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

Processes also includes the current activity, as represented by the value of….?

A

the program counter and the contents of the processor’s registers.

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

A process generally also includes the process stack, which contains…?

A

temporary data (such as function parameters, return addresses, and local variables), and a data section, which contains global variables.

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

A process may also include a heap, which is…?

A

memory that is dynamically allocated during process run time.

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

We emphasize that a program by itself is not a…?

A

process.

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

A program is a …?

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.

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

A program becomes a process when an…?

A

executable file is loaded into memory.

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

Two common techniques for loading executable files are …?

A

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)

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

Although two processes may be associated with the same program, they are nevertheless considered…?

A

two separate execution sequences. (For instance, several users may be running different copies of the mail program, or the same user may invoke many copies of the Web browser program. Each of these separate process, and although the text sections are equivalent, the data, heap, and stack sections vary. It is also common to have a process that spawns many processes as it runs)

18
Q

As a process executes it changes…?

A

State.

19
Q

The state of a process is defined in part by the…?

A

current activity of that process.

20
Q

Each process may be in one of the following states….?

A
  • New: The process is being created.
  • Running : Instructions are being executed.
  • Waiting : The process is waiting for some event to occur (such as an I/O completion or reception of a signal).
  • Ready : The Process is waiting to be assigned to a processor.
  • Terminated : The process has finished execution.

(These names are arbitrary, and they vary across OS. The states that they represent are found on all systems, however. Certain os also delineate process states more finely. It is important to realize that only one process can be running on any processor at any instant. Many processes may be ready and waiting, however

21
Q

Each process is represented in the OS by a…?

A

process control block. (PBC)

22
Q

A process control block is also called…?

A

a task control block.

23
Q

Process state…?

A

the state may be new, ready, running, waiting, halted, and so on.

24
Q

Program counter…?

A

The counter indicates the address of the next instruction to be executed for this process.

25
Q

CPU reigisters…?

A

The registers vary in number and type, depending on the computer architecture. They include accumulators, index registers, stack pointers, and general-purpose registers,plus any condition code information. Along with the program counter, this state information must be saved when an interrupt occurs, to allow the process to be continued correctly afterwards.

26
Q

CPU-scheduling…?

A

this information includes a process priority, pointers to scheduling, queues, and any other scheduling parameters.

27
Q

Memory-management information…?

A

this information may include such information as the value of the base and the limit registers, the page tables, or the segment tables, depending on the memory system used by the OS.

28
Q

Accounting information…?

A

This information includes the amount of CPU and real time used, time limits, account numbers , job or process numbers, and so on.

29
Q

I/O status information…?

A

This information includes the list of I/O devices allocated to the process, a list of open files, and so on.

30
Q

PCB simply serves as the repository for any information that…?

A

may vary from process to process.

31
Q

A process is a program that performs a single…?

A

thread of execution.

For example, when a process is running a word-processing program, a single thread of instructions is being executed.

32
Q

The single thread of control allows the process to?

A

preform only one task at a time.

(The user cannot simultaneously type in characters and run the spell checker within the same process, for example. Many modern os have extended the process concept to allow a process to have multiple threads of execution and thus to perform more than one task at a time.

33
Q

On a system that supports threads, the PCB is expanded to include…?

A

information for each thread. Other changes throughout the system are also needed to support threads.

34
Q

The objective of multiprogramming is to…?

A

have some process running at all times, to maximize CPU utilization.

35
Q

The objective of time sharing is to…?

A

switch the CPU among processes so frequently that users can interact with each program while it is running.

36
Q

to help with question 34 and 35 the process scheduler selects an available process (possibly from a set of several available process) for…?

A

program execution on the CPU.

37
Q

For a single processor system, there will never be…?

A

more than one running process.

(If there are more processes, the rest will have to wait until the CPU is free and can be rescheduled.

38
Q

As a process enters the system, the are put into a…?

A

job queue.

39
Q

The job queue consists of …?

A

all processes in the system.

40
Q

The processes that are residing in main memory and are all ready and waiting to execute are kept on…?

A

a list called the ready queue.

41
Q

The ready queue is generally stored as…?

A

a link list.