@ [TOC] operating system
to solve a task i.e. open a process
PCB (process control block) the process control block
'W' is provided to block state
the Schedule (); switching function
pCur: current process
pNew: new process
getNext (): Scheduling
FIFO: FIFO
here to achieve delicate operation, it requires the use of assembly code
Code meaning:
the 10100b ax opposed to
the 100 to the address counter ax
1 and 2 are 100 addresses the process of accessing multiple processes can be placed in memory at the same time, cause address conflicts
resolved by the mapping table
in order to achieve synchronization advance, locked reasonable counter, and then advance to a certain extent
the producers P advance and locked
consumption check the lock by C
P continue to promote, advance to certain programs, unlock
C advance
so that the value of maintaining the correct counter