DV1204/Lectures

From FUKTwiki

Revision as of 01:20, 24 May 2008 by Teddy (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Tråd (minnimal/naken process)

  • PC
  • Register
  • stack

Process

  • "tråd"
  • minne
  • filer

PCB (Process content block)

  • PID
  • Status
  • Prioritet
  • Register
  • Minne
  • Kommunikation
  • Sekundärminne
  • Tid

[edit] Semafor

Viktigt nästan garanterad tenta fråga om semafor'er

[edit] Binär Semafor

Var S = 0; Köavproc Q;

(P) wait om s = 1 så sätt s = 0 annars lägg proc i Q, sätt Proc blockerad

(V) Är Q tom? S = 1 Nej? Ta ut proc ur Q, sätt körbar.

[edit] Counting Semafor

Se wiki.

Personal tools
local/fukt.png);" href="/wiki/Main_Page" title="Visit the Main Page [z]" accesskey="z">
Navigation
FUKT
Toolbox