comp sci 2

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

1/19

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.

20 Terms

1
New cards

A bunch of instructions stored in a computer that tells it what to do.

Software

2
New cards

Software like Chrome, Word, Zoom.

Application software

3
New cards

Software like Windows, macOS, antivirus.

System software

4
New cards

Helps the parts of a computer work together—manages programs, memory, and devices.

Operating System (OS)

5
New cards

The OS decides which programs can use the CPU and for how long.

Process management

6
New cards

A program that is actively running.

Process

7
New cards

Ready (waiting to run), Running (using CPU), Waiting (paused for input), and Terminated (done).

Main states of a process

8
New cards

Choosing which program gets to use the CPU next when many are ready.

CPU scheduling

9
New cards

The program keeps using the CPU until it's done, no interruptions.

Non-preemptive scheduling

10
New cards

The OS can pause a program to let another one run.

Preemptive scheduling

11
New cards

The total time from when a program enters the system to when it finishes.

Turnaround time

12
New cards

Programs run in the order they arrive. No skipping.

First-Come, First-Served (FCFS) scheduling

13
New cards

If a program freezes or takes forever, everything else gets stuck waiting.

Downside of FCFS

14
New cards

The OS picks the program with the shortest run time next.

Shortest Job Next (SJN) scheduling

15
New cards

You don't always know how long a program will take.

Problem with SJN

16
New cards

Each program gets a fixed time to run. If it's not done, it waits its turn again.

Round Robin scheduling

17
New cards

It's preemptive—the OS can stop a program after its time slice ends.

Round Robin preemptive or non-preemptive

18
New cards

The small amount of time each program gets to use the CPU before the next one gets a turn.

Time slice (or quantum)

19
New cards

Round Robin—it shares time fairly between all programs.

Best CPU scheduling method for fairness

20
New cards

Shortest Job Next (SJN) if job times are known.

Best method for average turnaround time