GoConqr has a new look! Let us know what you think.

Quiz

Pintos

Rebecka H 32 questions

Take the quiz

Questions in this quiz (32)

  1. 1(a) Consider the program below, called fork-test.
    int main(void) {
    int pid1 = 0;
    pid1 = fork();
    int pid2 = 0;
    pid2 = fork();
    printf("PID1: %d, PID2: %d\n", pid1, pid2); return 0; }
    Which of the lines below could have been produced by the first process that was started when running fork-test?
    1. AA) PID1: 0, PID2: 0
    2. BB) PID1: 0, PID2: 28252
    3. CC) PID1: 28250, PID2: 0
    4. DD) PID1: 28250, PID2: 28251
  2. 2(b) Which of of the following events will take place when switching from one process (old) to another (new).
    1. AA) Changing the set of currently open files to match with the new process.
    2. BB) Copying data from the process control block (PCB) of the new process into the interrupt vector table.
    3. CC) Storing CPU register states into the PCB of the old process.
    4. DD) Updating registers relating to memory management (e.g., base address pointer).
  3. 3c) Assume a single-CPU system and the following set of processes with arrival times (in milliseconds), expected maximum execution time (ms), and priority (1 is highest, 5 is lowest priority). The time quantum is 2ms, and to break a tie between two processes arriving simultaneously to the queue, you can assume that a newly arrived process will be put first.
    Which of the scheduling policies below could result in the following execuction trace? P1, P1, P2, P2, P1, P1, P2, P3, P4, P4, P1, P1, P5, P5, P4
    1. AA) FIFO
    2. BB) Round-robin
    3. CC) Shortest-job first with preemption
    4. DD) Priority scheduling with preemption
  4. 4(d) Which of the following mechanisms will prevent deadlocks?
    1. AA) Only use safe resources
    2. BB) Always acquire resources according to a globally defined order
    3. CC) Ensure that ∀j : Rj ≥ P i D(i, j), where Rj is the number of instances of resource j and D(i, j) is the maximum demand of resource type j from process i.
    4. DD) Only request a resource when it is really needed.
  5. 5(e) Which of these parameters will affect the effective access time (EAT) of demand paging?
    1. AA) Page fault rate (probability of page fault)
    2. BB) Segment table length
    3. CC) Time to swap page in from disk
    4. DD) Disk size
  6. 6(f) Which of the terms below refer to methods used for allocation of disk space for a file?
    1. AA) Virtual allocation
    2. BB) Indexed allocation
    3. CC) Segment allocation
    4. DD) Contiguous allocation
  7. 7(g) Which of the following concepts relate to multiprocessor scheduling?
    1. AA) Segmentation
    2. BB) Task migration
    3. CC) Hard vs. soft affinity
    4. DD) Co-scheduling
  8. 8(h) Given a virtual memory system with 4 page frames, how many page faults occur with the Least-Recently Used replacement strategy when pages are accessed in the following order:

    1, 2, 3, 4, 5, 1, 3, 4, 2, 3, 1, 5, 4.
    1. AA) 7
    2. BB) 9
    3. CC) 11
    4. DD) 13
  9. 9(i) Virtualization has been an enabler for cloud-based services. Which of the following file are true regarding this technique?
    1. AA) Full virtualization allows multiple operating system instances running on a single machine.
    2. BB) A computer with an Intel architecture and a full virtualization solution can only run a guest OS built for an Intel architecture.
    3. CC) Paravirtualization requires support in the guest OS.
    4. DD) Virtualization removes the need for having priviledged instructions in the CPU.
  10. 10(j) Which of the following mechanisms reduce the impact of buffer overflow attacks?
    1. AA) Marking certain parts of the data as non-executable (e.g., non-executable stack, non- executable pages)
    2. BB) Arrays with built-in bound checks
    3. CC) Making sure that the source and destination buffers are of appropriate length when copying memory
    4. DD) Validate user input before processing it

Information

Description
Quiz on Pintos, created by Rebecka H on 22/03/2021.
Author
Rebecka H
Language
English
Views
12
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?