Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1time_slice = 10 # milliseconds | AThe OS quickly changes the CPU from one running program to another so that all the programs keep making progress | |
| 2switch_to(next_program) | BThe short period of CPU time given to one program before the OS moves on to the next program | |
| 3Several programs are open at once, and the OS gives each one a turn on the CPU in a repeating loop | CEach program is run to the end before the next one starts, so the CPU time is not shared in short slices and the programs do not appear to run together. | |
| 4The OS keeps each program's work separate by storing its own data so one program does not overwrite another | Dmemory[program] = own_data | |
| 5run(music_player) run(web_browser) | Efor program in open_programs: run(program, time_slice) | |
| 6one_program_at_a_time = True | FThis setting stops the OS from switching between programs, so only one program can use the CPU and multitasking cannot happen. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
multitasking — The OS runs several programs at once by sharing CPU time in very short slices and switching quickly between them, so they appear to run together.OS function: multitaskinggiveCPU(program, timeSlice)saveState(currentProgram)IF programs > 1 THEN multitasking ← TRUEWHILE timeLeft > 0 DO run(program)