What is multitasking in operating systems and computer architecture?
Ch 14: Preemptive Multitasking & Context Switching
Detailed implementation of a complete preemptive multitasking kernel driven by PIT timer interrupts (INT 08h), managing ready/blocked process queues, and stack-pointer manipulation during context switching.
90 Questions90 MCQs0 Short Questions0 Long Questions
SEMESTER PASS
CS401 - Computer Architecture and Assembly Language Programming Examination Practice
Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.
Showing 1 โ 10 of 90 Questions
Page 1 of 9
In multi-threading operating systems, each thread independently executes function calls, accepts parameters, and maintains its own ________ variables.
The thread registration code initializes the Process Control Block (PCB) and adds it to the linked list so that the ________ will give it a turn to execute.
In NASM assembly, an imported symbol (defined in another module) is declared using the ________ directive, while an exported symbol (made accessible to other modules) is declared using the ________ directive.
In NASM assembly, an imported symbol is declared with the ________, while an exported symbol is declared with the ________.
Given the assembly language routine `swap` below, write a C language program that declares and calls this assembly routine to swap two integer variables:
```assembly
[section .text]
global swap
swap:
mov eax, [esp+4] ; load pointer to first integer (int *a)
mov ecx, [esp+8] ; load pointer to second integer (int *b)
mov edx, [eax] ; edx = *a
mov ebx, [ecx] ; ebx = *b
mov [eax], ebx ; *a = *b
mov [ecx], edx ; *b = *a
ret
```
How many prevalent calling conventions (e.g., C calling convention and Pascal calling convention) primarily exist for interfacing assembly routines with high-level languages?
In NASM assembly language, an imported external symbol declared in another module is specified using which directive?
In NASM assembly language, an imported symbol is declared with the __________ directive, while an exported symbol is declared with the __________ directive.
In NASM assembly language, an imported symbol is declared with the ________ directive, while an exported symbol is declared with the ________ directive.