1. Home
  2. Explore
  3. Computer Science
  4. Process States and Lifecycle

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Process States and Lifecycle

  • 52Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Process States
The process life cycle is described using a
intended to explain how a process changes state from creation to completion.

52 questions

  1. 1
    The process life cycle is described using a
    _____
    intended to explain how a process changes state from creation to completion.
    Hint

    It is a simplified representation of a process’s progress.

    Answer

    model

    Explanation

    The content describes process states as a model for understanding the states a process passes through, rather than as a set of states that the kernel itself necessarily knows.

  2. 2
    The states described as mandatory and present by default are called
    _____
    states.
    Hint

    They are contrasted with additional states.

    Answer

    primary

    Explanation

    The primary states are the basic states in the process life cycle; the content also introduces additional states later.

  3. 3
    A process enters the
    _____
    state when it has just been created.
    Hint

    This is the first state named in the process life cycle.

    Answer

    New

    Explanation

    The new state represents a process that has been created, such as a program that has been written and stored but not yet run.

  4. 4
    In the described model, a program that has been stored in secondary memory but not yet run is in the
    _____
    state.
    Hint

    Think of the state associated with just-created processes.

    Answer

    new

    Explanation

    The content uses a stored but not-yet-run program as an example of a process in the new state.

  5. 5
    After being admitted to RAM and waiting for CPU time, a process is in the
    _____
    state.
    Hint

    The process can run, but is waiting for the processor.

    Answer

    ready

    Explanation

    A ready process is in memory and prepared to execute, but has not yet been dispatched to the CPU.

  6. 6
    A process that is currently being executed by the CPU is in the
    _____
    state.
    Hint

    This state means the process is actively executing.

    Answer

    running

    Explanation

    The running state is reached when a process is dispatched and the CPU executes its instructions.

  7. 7
    After execution finishes, a process enters the
    _____
    state.
    Hint

    This state marks the end of the process’s execution.

    Answer

    terminated

    Explanation

    A process is terminated when it has completed execution; the operating system can then reclaim the resources assigned to it.

  8. 8
    A process waiting for an I/O operation is in the
    _____
    state, also called the blocked state.
    Hint

    The process cannot continue until an event or operation finishes.

    Answer

    wait

    Explanation

    The wait or block state is used when a process must pause for I/O, such as reading a file or accessing hardware.

  9. 9
    While waiting for an I/O operation, a process remains in
    _____
    according to the described model.
    Hint

    It is still in main memory, even though it is not running.

    Answer

    RAM

    Explanation

    The content explains that the wait state is also in RAM; the process is waiting rather than executing.

  10. 10
    When I/O finishes, a waiting process returns to the
    _____
    state rather than going directly to running.
    Hint

    It must wait for a later CPU assignment.

    Answer

    ready

    Explanation

    After its I/O request completes, the process rejoins the ready queue and waits for its turn to be dispatched.

  11. 11
    The scheduler that admits processes from secondary memory into the ready state is the
    _____
    scheduler.
    Hint

    Its role is to control which processes enter the system’s ready pool.

    Answer

    long term

    Explanation

    The long term scheduler selects processes to bring into the ready state from the larger pool of processes in secondary memory.

  12. 12
    Bringing more processes into the ready queue is associated with the concept of
    _____
    .
    Hint

    It describes keeping multiple processes available in memory.

    Answer

    multi programming

    Explanation

    The content describes multiprogramming as bringing more processes into the ready queue so that multiple processes are available for execution.

  13. 13
    Because RAM is limited, the long term scheduler admits only
    _____
    of the processes stored in secondary memory.
    Hint

    The content contrasts the large number of processes on disk with the smaller number admitted to memory.

    Answer

    some

    Explanation

    The content notes that secondary memory can hold many processes, while RAM limits how many can be brought into the ready state at once.

  14. 14
    The scheduler that selects a process from the ready state and sends it to the CPU is the
    _____
    scheduler.
    Hint

    It makes the immediate choice of which ready process runs next.

    Answer

    short term

    Explanation

    The short term scheduler selects a process from the ready queue and dispatches it to the running state.

  15. 15
    Moving a process from the ready state to the running state is called
    _____
    the process.
    Hint

    This action assigns the selected process to the CPU.

    Answer

    dispatching

    Explanation

    Dispatching is the act of sending a selected ready process to the CPU for execution.

  16. 16
    The scheduler that can move processes out of RAM temporarily when memory is under pressure is the
    _____
    scheduler.
    Hint

    It is the scheduler associated with suspension and swapping.

    Answer

    medium turn

    Explanation

    The medium turn scheduler is described as handling processes that must be swapped out of RAM when memory is filled.

  17. 17
    In a
    _____
    system, the content assumes that only one processor executes a process at a time.
    Hint

    The term refers to a system with one CPU.

    Answer

    uni processor

    Explanation

    The discussion assumes a uniprocessor system, in which one CPU runs one process at a time.

  18. 18
    A system with multiple processors can execute multiple processes in
    _____
    .
    Hint

    Different processors can work on processes simultaneously.

    Answer

    parallel processing

    Explanation

    The content contrasts uniprocessor execution with multiprocessor systems, where parallel processing can run multiple processes at once.

  19. 19
    If a process completes all its instructions without being interrupted, the process reaches the
    _____
    state.
    Hint

    Execution is finished and the process no longer needs to run.

    Answer

    terminated

    Explanation

    Once a process completes its execution, it terminates and its allocated resources can be reclaimed.

  20. 20
    When a higher-priority process needs the CPU, the currently running process may be sent back to the
    _____
    state.
    Hint

    The interrupted process remains eligible to run again later.

    Answer

    ready

    Explanation

    The content describes a running process being returned to the ready queue so a higher-priority process can execute first.

  21. 21
    In round-robin scheduling, the fixed period for which a process may use the CPU is called the
    _____
    .
    Hint

    It is the process’s allotted slice of CPU time.

    Answer

    time quantum

    Explanation

    Round-robin scheduling gives each process a fixed time quantum before the CPU moves on to another process.

  22. 22
    If a process has not finished when its time quantum expires, it is returned to the
    _____
    state.
    Hint

    It can receive another turn after other processes have had a chance to run.

    Answer

    ready

    Explanation

    In the described round-robin approach, an unfinished process goes back to the ready queue when its time quantum expires.

  23. 23
    If a process finishes before its time quantum expires, it is
    _____
    .
    Hint

    Its execution ends before it needs another CPU turn.

    Answer

    terminated

    Explanation

    A process that completes its work within its allotted time quantum terminates rather than returning to the ready queue.

  24. 24
    Scheduling that allows a running process to be interrupted before it finishes is called
    _____
    scheduling.
    Hint

    A higher-priority process or an expired time slice can trigger it.

    Answer

    pre-emptive

    Explanation

    Pre-emptive scheduling can stop a running process in the middle, for example when a higher-priority process arrives or its time quantum expires.

  25. 25
    Scheduling in which a process runs to completion without being interrupted is called
    _____
    scheduling.
    Hint

    The running process is not displaced before it finishes.

    Answer

    non pre-emptive

    Explanation

    In non-pre-emptive scheduling, the CPU does not interrupt a process to switch to another one before the first process completes.

  26. 26
    When a process is running, the CPU carries out its arithmetic, logic, and other
    _____
    .
    Hint

    These are the operations specified by the program.

    Answer

    instructions

    Explanation

    During the running state, the CPU executes the process’s instructions.

  27. 27
    In the described uniprocessor model, only
    _____
    process runs on the CPU at a time.
    Hint

    The system has a single processor.

    Answer

    one

    Explanation

    A uniprocessor system has one CPU, so it executes one process at a time, even though it may switch among processes.

  28. 28
    A process that is running on the CPU still resides in
    _____
    .
    Hint

    The CPU executes it while it is held in main memory.

    Answer

    RAM

    Explanation

    The process’s state changes when it is dispatched, but the content says it remains in RAM while the CPU executes it.

  29. 29
    A process requests an I/O operation when it needs to read a file or access
    _____
    .
    Hint

    This includes devices such as a monitor.

    Answer

    hardware

    Explanation

    The content gives reading a file and accessing a monitor or other hardware as examples of I/O requests.

  30. 30
    When a process requests I/O, it moves from running to the
    _____
    state while the operation is pending.
    Hint

    The process cannot continue until the requested operation is complete.

    Answer

    wait

    Explanation

    A process that is waiting for I/O is blocked from continuing its execution, so it enters the wait state.

  31. 31
    A process waiting for secondary-memory I/O should not keep the CPU idle, because secondary memory is relatively
    _____
    .
    Hint

    Compare its speed with the CPU’s ability to execute instructions.

    Answer

    slow

    Explanation

    The content explains that secondary memory is much slower than the CPU, so other processes can use the CPU while an I/O request is pending.

  32. 32
    While one process waits for I/O, the CPU can execute
    _____
    processes.
    Hint

    The CPU can make progress on work that is not blocked.

    Answer

    other

    Explanation

    Moving an I/O-waiting process aside allows the CPU to work on another process rather than making all processes wait.

  33. 33
    After an I/O operation is completed, the process joins the
    _____
    queue.
    Hint

    It must wait for a CPU turn after its I/O is done.

    Answer

    ready

    Explanation

    Completion of I/O makes the process ready to execute, but it does not immediately make it the running process.

  34. 34
    The group of processes waiting for I/O is referred to as the
    _____
    queue.
    Hint

    The queue contains processes in the waiting or blocked state.

    Answer

    wait

    Explanation

    The content describes the wait state as a queue in which processes wait for I/O operations to complete.

  35. 35
    An I/O request can involve reading data from
    _____
    memory.
    Hint

    This is where files are stored when they are not in main memory.

    Answer

    secondary

    Explanation

    Reading a file from secondary memory is given as an example of an I/O operation that causes a process to wait.

  36. 36
    If the wait queue fills because RAM is limited, a process may be moved into the
    _____
    wait state.
    Hint

    This is an additional state used when a process must be paused outside RAM.

    Answer

    suspend

    Explanation

    The content describes a suspend wait or suspend block state for processes that cannot remain in the full wait queue in RAM.

  37. 37
    Moving a process from RAM to secondary memory temporarily is called swapping it
    _____
    .
    Hint

    The process is being moved out of main memory.

    Answer

    out

    Explanation

    Swap out means sending a process from RAM to secondary memory temporarily, freeing space in RAM.

  38. 38
    A process in the suspend wait state may return to the wait state when there is enough
    _____
    .
    Hint

    The process can return when the relevant queue is no longer full.

    Answer

    space

    Explanation

    The content says a suspended waiting process can come back to the wait state when space becomes available.

  39. 39
    If the ready queue is full and a high-priority process arrives, it may be placed in the
    _____
    ready state.
    Hint

    This additional state allows the process to wait outside the full ready queue.

    Answer

    suspend

    Explanation

    A process that cannot enter a full ready queue may be held in the suspend ready state until it can be resumed.

  40. 40
    When space becomes available in the ready queue, a suspended-ready process can be
    _____
    back to the ready state.
    Hint

    It is brought back from its temporary suspended condition.

    Answer

    resumed

    Explanation

    The content describes resuming a suspended-ready process and returning it to the ready state when space is available.

  41. 41
    The scheduler responsible for swapping processes out when RAM is under pressure is the
    _____
    scheduler.
    Hint

    It manages temporary suspension to help control memory use.

    Answer

    medium turn

    Explanation

    The medium turn scheduler handles moving processes to secondary memory when RAM is becoming full.

  42. 42
    In the described process flow, a suspended process that has completed its I/O ultimately needs to return to the
    _____
    state.
    Hint

    It must rejoin the queue for CPU scheduling before running.

    Answer

    ready

    Explanation

    After its I/O is complete, the process must eventually return to the ready state, where it can wait for CPU time.

  43. 43
    Secondary memory used to hold processes temporarily when RAM is full is called the
    _____
    .
    Hint

    It provides storage support for processes that cannot stay in RAM.

    Answer

    backing store

    Explanation

    The content uses the term backing store for secondary-memory storage used when processes must be moved out of RAM.

  44. 44
    A system may use a replacement policy such as least frequently used or most frequently used to decide which processes to
    _____
    .
    Hint

    The aim is to free space by moving selected processes out of RAM.

    Answer

    send back

    Explanation

    The content mentions using policies such as least frequently used or most frequently used to filter processes and free memory.

  45. 45
    In Windows, the
    _____
    displays a list of processes running on the system.
    Hint

    It is a built-in utility for viewing processes and system activity.

    Answer

    task manager

    Explanation

    The content points to the Windows Task Manager as a place to view the system’s processes.

  46. 46
    The Windows utility mentioned for viewing system and user processes is the
    _____
    tab in Task Manager.
    Hint

    The tab is named for the items it lists.

    Answer

    process

    Explanation

    The process tab in Windows Task Manager lists processes, including system and user processes.

  47. 47
    On UNIX or Linux, the command used to obtain process information is
    _____
    .
    Hint

    It is a short command name for displaying process information.

    Answer

    PS

    Explanation

    The content identifies the PS command as a way to view process information on UNIX or Linux systems.

  48. 48
    The process information available through PS can include a process’s
    _____
    .
    Hint

    It is the identifier associated with an individual process.

    Answer

    process ID

    Explanation

    The content says the PS command can display a process ID along with other process details.

  49. 49
    The PS command can show which
    _____
    a process is executing.
    Hint

    This is the instruction or program associated with the process.

    Answer

    command

    Explanation

    The process information shown by PS can include the command the process is executing.

  50. 50
    The PS command can provide information about how long a process has been running on the
    _____
    .
    Hint

    It is the processor whose use is relevant to execution time.

    Answer

    CPU

    Explanation

    The content states that process information can include how long the process has been running on the CPU.

  51. 51
    Options such as PS-e and PS-u are examples of
    _____
    of the PS command.
    Hint

    They modify the command’s form or behavior.

    Answer

    variations

    Explanation

    The content notes that PS has variations, including options such as PS-e and PS-u.

  52. 52
    Executing multiple processes by switching CPU attention among them is described as
    _____
    .
    Hint

    It is contrasted with bringing many processes into the ready queue.

    Answer

    multi-tasking

    Explanation

    The content distinguishes multitasking, involving execution of multiple processes over time, from multiprogramming, which concerns bringing processes into the ready queue.

1 of 52
Question 1 of 52

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent