Comp Sys Fund Quizzes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

When a process is waiting for an I/O operation to complete, what is the state of the process?

-new

-ready

-waiting

-running

-waiting(blocked)

2
New cards

Which of the following best describes the function of the short-term scheduler?

  • admits new processes to the system

  • selects the next process from the ready queue to run on the CPU

  • swaps processes in and out of memory

  • handles process termination

  • selects the next process from the ready queue to run on the CPU

3
New cards

The Interrupt Service Routine (ISR) must save the state of the process before executing. Which of the following is NOT typically saved?

  • Stack Pointer

  • Mouse position

  • Instruction Register(IR)

  • Program Counter(PC)

  • Mouse position

4
New cards

Interrupts create events T/F

False

5
New cards

When an interrupt occurs, the CPU immediately stops the current instruction and jumps to the ISR. T/F?

  • False

6
New cards

Throughput is defined as the time between the submission of a process and its completion. T/F?

  • False

7
New cards

The mean time between failures (MTBF) measures the average time a system operates without interruption. T/F?

  • True

8
New cards

Suppose a system has the following process completion times: Process A arrives at 0 and finishes at 3, Process B arrives at 2 and finishes at 7, Process C arrives at 4 and finishes at 10. What is the average turnaround time?

4.66

9
New cards

A server is available 99.9% of the time in a year. Approximately how many hours is it down in one year?

8.76 - answer was 9 with margin of .5

10
New cards

A computer system is running three processes:

  • Process A is waiting for a user to click a button,

  • Process B is reading data from the disk,

  • Process C is currently using the CPU.

Suddenly, the user clicks the button for Process A. What is the most likely sequence of events that will happen next?

  • The system ignores the click until Process C finishes all its work.

  • Process A immediately starts running, interrupting Process C, and Process B is terminated.

  • Process B is paused, Process A and C both run at the same time.

  • The CPU finishes the current instruction for Process C, saves its state, and then switches to Process A if it has higher priority.

  • The CPU finishes the current instruction for Process C, saves its state, and then switches to Process A if it has higher priority.

11
New cards

Explain the difference between CPU utilization and throughput using an example from everyday life (e.g., a kitchen, a classroom).

hY

12
New cards

If we roll a six-sided dice two times, what is the probability of getting a sum of two dice equal to five (5)?

  • 0.33

  • 0.5

  • 0.11

  • 0.25

  • 0.11

13
New cards

The service time of a process follows Poisson's distribution.

T/F

  • False

14
New cards

Which of the following is the correct formula for the probability of event A given event B (conditional probability)

  • Pr[A U B] / Pr[A]

  • Pr[A ∩ B] / Pr[B]

  • Pr[A] + Pr[B] 

  • Pr[A ∩ B] / Pr[A]

Pr[A ∩ B] / Pr[B]

15
New cards

We have options to buy one of the two cars. Car 1 is brand new with an engine life-expectancy of 5 years. The Car 2 has been in use for 2 years, with a life expectancy of 5 years. The probability of engine failure is higher after 3 years for a used car. T/F

False

16
New cards

If a fair die is tossed, what is the probability of getting an even number?

1/2

17
New cards

If the average number of arrivals at a store is 4 per minute, what is the probability that there are exactly 2 arrivals in one minute? (Answer up to 2 digits after the decimal)

0.14

18
New cards

For a random variable X representing the number of heads in 3 coin tosses, what is the probability that X = 2?

  • 3/8

  • 1/8

  • 4/8

  • 2/8

3/8

19
New cards

What does the simulation "clock" represent in a discrete-event simulation?

  • The number of arrivals

  • The current simulated time in the system

  • The number of events processed

  • The number of customers in the system

  • The current simulated time in the system

20
New cards

If the ready queue has 2 processes from time 6 to 8, and 1 process from time 8 to 11, what is the total accumulated process time in the ready queue during this interval?

7

21
New cards
<p>T/F</p>

T/F

True

22
New cards
term image

4

23
New cards

In the FCFS scheduling algorithm, we pause the running process when another process comes into the system. T/F?

False

24
New cards

To increase the availability, we must perform vertical integration. T/F?

False

25
New cards

In a real-time system, latency is not an important issue.

T/F?

False

26
New cards

In the Shortest Job First (SJF) algorithm, we consider both the service time and the arrival time to determine the next process for execution. T/F?

False

27
New cards

Multilevel queue scheduling allows different queues to use different scheduling algorithms. T/F?

True

28
New cards

If a process has waited 10 units and has a service time of 5 units, what is its response ratio (R)?

3

29
New cards

Cache Hit/ Cache Miss is related to which of the following concepts?

  • Hard Affinity

  • Non-preemptive

  • Preemptive

  • Soft Affinity

  • Hard affinity

  • soft affinity

30
New cards
term image

5.5

31
New cards
  • Task set: (4, 1.5), (3, 2.5). If we apply the RM scheduling algorithm to this Task Set, will we be able to meet all deadlines?

NO

32
New cards

Task parallelism is more efficient because it can be scaled better than Data Splitting. T/F?

False

33
New cards

We can solve the Data Race issue with the help of Synchronization. T/F?

True

34
New cards
<p>Data-Oriented</p><p>Task-Oriented</p>

Data-Oriented

Task-Oriented

Data-oriented