0% found this document useful (0 votes)
99 views1 page

CS401 - Short Notes Chapter 11

This document summarizes key points from CS401 Chapter 11 on assembly language and programming. It discusses using IRQ 0 interrupts to get control of a processor without its knowledge, how process control blocks store the registers of tasks during context switches, and how threads can contain functions, parameters, and local variables. It also explains how increasing the timer interrupt frequency can improve the perceived speed of multitasking by making thread switches appear faster.

Uploaded by

malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views1 page

CS401 - Short Notes Chapter 11

This document summarizes key points from CS401 Chapter 11 on assembly language and programming. It discusses using IRQ 0 interrupts to get control of a processor without its knowledge, how process control blocks store the registers of tasks during context switches, and how threads can contain functions, parameters, and local variables. It also explains how increasing the timer interrupt frequency can improve the perceived speed of multitasking by making thread switches appear faster.

Uploaded by

malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SUPERSTARWEBTECH.BLOGSPOT.

COM
CS401-ASSEMBLY LANGUAGE AND PROGRAMMING
CS401 CHAPTER NO 11 (LECTURE 30-32)
PREPARED BY: HTTPS://SUPERSTARWEBTECH.BLOGSPOT.COM/

Short Notes Chapter 11 (Lecture 30-32):


To get control from the program without the program knowing about it, we can use the IRQ 0
highest priority interrupt that is periodically coming to the processor.
PCB:
The space where all registers of a task are stored is called the process control block or PCB.
INT 08 that is saving and restoring the registers is called the scheduler and the whole event is
called a context switch.
Threads can have function calls, parameters and local variables etc.
How to improve the slowdown in the speed of multitasking:
As keys are pressed and new threads are registered, there is an obvious slowdown in the speed
of multitasking. To improve that, we can change the timer interrupt frequency. The following
can be used to set to an approximately 1ms interval:
mov ax, 1100
out 0x40, al
mov al, ah
out 0x40, al
This makes the threads look faster.

👉 Also Recommended: CS401 SHORT NOTES CHAPTER 1-7 Midterm

You might also like