Jump to content

Guide to Multitasking Operating Systems:Index: Difference between revisions

From EDM2
mNo edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==machine language==
{{GuideMultiOS}}


==Machine language==
The instructions which are recognized and executed by, the CPU of a computer. A machine language program is simply long sequence of 0's and 1's. The CPU will typically take a 32-bit string of 0's and 1's as an instruction. Since it is extremely difficult to write machine language programs directly, assemblers are used, in which the programmer uses mnemonics to symbolize the machine language instructions.
The instructions which are recognized and executed by, the CPU of a computer. A machine language program is simply long sequence of 0's and 1's. The CPU will typically take a 32-bit string of 0's and 1's as an instruction. Since it is extremely difficult to write machine language programs directly, assemblers are used, in which the programmer uses mnemonics to symbolize the machine language instructions.


Typical Assembler Mnemonic:
Typical Assembler Mnemonic:
   
   
  MOV EAX,EBX    ;Move contents of EBX into EAX
  MOV EAX,EBX    ;Move contents of EBX into EAX
Line 20: Line 21:
Context-switching refers to the mechanism used by the operating system to stop running one job and to start running another. Among other things, the operating system must save the state of the CPU of the current job, i.e. contents of registers, stack and load the state of the CPU for the job that will take control of the CPU.  
Context-switching refers to the mechanism used by the operating system to stop running one job and to start running another. Among other things, the operating system must save the state of the CPU of the current job, i.e. contents of registers, stack and load the state of the CPU for the job that will take control of the CPU.  


[[Category:Context-switching]]
 
<center><noinclude><< [[Guide to Multitasking Operating Systems:Troubleshooting Concepts|Troubleshooting Concepts]] -- [[Guide to Multitasking Operating Systems|Index]] </noinclude></center>
 
[[Category:Miscellaneous Articles]]

Latest revision as of 15:51, 24 December 2017

Guide to Multitasking Operating Systems
  1. Introduction
  2. Fundamentals of Hardware Organization
  3. Fundamentals of Operating Systems
  4. Overview of the OS/2 Operating System
  5. Reference Material
  6. Troubleshooting Concepts
  7. Index

Machine language

The instructions which are recognized and executed by, the CPU of a computer. A machine language program is simply long sequence of 0's and 1's. The CPU will typically take a 32-bit string of 0's and 1's as an instruction. Since it is extremely difficult to write machine language programs directly, assemblers are used, in which the programmer uses mnemonics to symbolize the machine language instructions.

Typical Assembler Mnemonic:

MOV EAX,EBX     ;Move contents of EBX into EAX
Corresponding machine language instruction:
(wild guess...  get intruction formats and manually
  assemble the above instruction.)
  ...0110 1100 0101 0011...

Queue

A queue is like a waiting line at a bank with one teller, in which the first people that come into the line are the first people to be serviced by the teller, hence the First In First Out(FIFO) term.

Time-Slice

A time-slice The operating system keeps track of the value of the time-slice, and how much time each job has used up on its current time-slice.

Context-switching

Context-switching refers to the mechanism used by the operating system to stop running one job and to start running another. Among other things, the operating system must save the state of the CPU of the current job, i.e. contents of registers, stack and load the state of the CPU for the job that will take control of the CPU.


<< Troubleshooting Concepts -- Index