Preview

Coordinating the Machine’s Activities

Good Essays
Open Document
Open Document
572 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Coordinating the Machine’s Activities
Coordinating the Machine’s Activities

One of the most fundamental concepts of modern operating systems is the distinction between a program and the activity of executing a program. The former is a static set of directions, whereas the latter is a dynamic activity whose properties change as time progresses. The activity of executing a program under the control of the operating system is known as a process.

Associated with a process is the current status of the activity, called the process state. This state includes the current position in the program being executed (the value of the program counter) as well as the values in the other CPU registers and the associated memory cells. Roughly speaking, the process state is a snapshot of the machine at a particular time. At different times during the execution of a program (at different times in a process) different snapshots (different process states) will be observed.

The tasks associated with coordinating the execution of processes are handled by the scheduler and dispatcher within the operating system’s kernel. The scheduler maintains a record of the processes present in the computer system, introduces new processes to this pool, and removes completed processes from the pool. Thus when a user requests the execution of an application, it is the scheduler that adds the execution of that application to the pool of current processes.

To keep track of all the processes, the scheduler maintains a block of information in main memory called the process table. Each time the execution of a program is requested, the scheduler creates a new entry for that process in the process table. This entry contains such information as the memory area assigned to the process, the priority of the process, and whether the process is ready or waiting.

A process is ready if it is in a state in which its progress can continue; it is waiting if its progress is currently delayed until some external event occurs, such as the

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    _____________ is the ability of a central processing unit (CPU) or a single core in a multi-core processor to execute multiple processesor threads concurrently…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The operating systems job is managing the memory. The operating system is in charge of bringing this process into main memory (Stallings, 2012). However the processor must deal with references within the program. Branch instructions include an address to reference the order to be executed next. Data reference instructions include the address of the byte or word of data referenced. The processor hardware and operating system software must be able to translate the memory references found in the code of the program into actual physical memory addresses, reflecting the current location of the program in main memory. (Stallings, 2012).…

    • 573 Words
    • 3 Pages
    Good Essays
  • Good Essays

    11. An OS’s capability to run more than one application or process at the same time is referred to which of the…

    • 2490 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    CHAPTER 3 QUESTIONS

    • 438 Words
    • 7 Pages

    The portion of the operating system that selects the next process to run is called the _________ .…

    • 438 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Which type of departmentalization achieves economies of scale by placing people with common skills and orientations into common units?…

    • 1434 Words
    • 6 Pages
    Satisfactory Essays
  • Powerful Essays

    Operating System Differences

    • 3058 Words
    • 13 Pages

    Each operating system is a multi-user system, multiprocessing, multitasking, and multithreading. An operating system capable of allowing multiple software processes to run at the same time is a multiprocessing and multitasking computer. Operating systems that allow different parts of a software program to run concurrently are considered multithreading.…

    • 3058 Words
    • 13 Pages
    Powerful Essays
  • Good Essays

    Cost accoutning

    • 12348 Words
    • 50 Pages

    1. A process is a series of activities or operations, which are linked to perform a specific objective.…

    • 12348 Words
    • 50 Pages
    Good Essays
  • Good Essays

    When it comes to the program and how it relates to the computer processing and memory usage, the program will typically be stored in non-volatile memory until it is requested. Upon request it will then be loaded into random access memory (RAM). Once it is loaded into the RAM it then can be accessed by the central processing unit (CPU). It will then execute instructions until terminated. Termination can either be by user or it can be due to software or hardware error.…

    • 575 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    A process can be define as Sequence of interdependent and linked procedures which, at every stage, consume one or more resources (employee, time, energy, machines, money) to convert inputs (data, material, parts, etc.)…

    • 922 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    running of all processes. It becomes the centralized control as it checks the Process Request table looking for…

    • 2825 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    Oracle Pcp

    • 6458 Words
    • 26 Pages

    Allows scheduling of jobs – batch jobs, or Requests in Oracle terms. Processes concurrent programs as a Request. Requests can be grouped together into Request Sets. Different types of concurrent managers handle different types of requests. A concurrent program can be assigned to a responsibility, and that responsibility can be assigned to users, allowing them the permission to run the concurrent program. Concurrent managers may have limits on the concurrent programs that can be run, and the times that they can be started. Requests have priorities, status and log and out files in the above directory…

    • 6458 Words
    • 26 Pages
    Powerful Essays
  • Powerful Essays

    dox computer tech notes

    • 8726 Words
    • 35 Pages

    Multithreading: Program can be broken into smaller parts, loaded as needed by the OS. Allows different parts of a program to run at once.…

    • 8726 Words
    • 35 Pages
    Powerful Essays
  • Powerful Essays

    Round Robin

    • 2242 Words
    • 9 Pages

    In most systems, each process has a priority number, although numbers mean different things in different systems. In Unix, for example, priority 0 is the highest, and the bigger the priority number, the lower the priority. When a process is started, it is given a number, and then waits until all higher priority processes are not using the CPU before it gets a shot. Usually, the CPU is given to a process, and then, after a "time slice" has gone by, the scheduler re-evaluates the processes to see which one "deserves" the CPU next. Sometimes, the priority of a process is lowered when it uses CPU, so that a "greedy" process won 't make the system too slow for other processes. It 's all a balancing act, and the better it is done, the faster the computer appears to be to the user or users.…

    • 2242 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    Computer Basics

    • 5521 Words
    • 23 Pages

    When only a single program is allowed to run at a time, the system is grouped under a single-tasking system. However, when the operating system allows the execution of multiple tasks at one time, it is classified as a multi-tasking operating system. Multi-tasking can be of two types: pre-emptive or co-operative. In pre-emptive multitasking, the…

    • 5521 Words
    • 23 Pages
    Better Essays
  • Good Essays

    Types of Operating System

    • 639 Words
    • 3 Pages

    Multi-tasking and Single-tasking Operating Systems: When a single program is allowed to run at a time, the system is grouped under a single-tasking system, while in case the operating system allows the execution of multiple tasks at one time, it is classified as a multi-tasking operating system. Multi-tasking can be of two types namely, pre-emptive or co-operative. In pre-emptive multitasking, the operating system slices the CPU time and dedicates one slot to each of the programs. Unix-like operating systems such as Solaris and Linux support pre-emptive multitasking. If you are aware of the multi-threading terminology, you can consider this type of multi-tasking as similar to…

    • 639 Words
    • 3 Pages
    Good Essays