7928718600

7928718600



Figurę 4.8: Priority dispaich queues

SRUN


SRUN


SRUN


SRUN


SRUN


SRUN


SRUN


ii::’::1


dqactmap

• • ••

• • • •

1

• •• •

• • • •

0

1

0

1

• • • •

• t • •

• •• •

n

••••

••••

3

2

1

0

struct dispq dispq[ ];

dq_first

struct procs

SRUN


SRUN


6runprocs « 9 Active process list


struct    ..

with p_pri - maxrunpd - n

•    PREEMPT() — a macro that simply tests to see if kprunrun is set. If it is, then preempt() is called.

1

   pswtch() — selccts the next highest priority process to run (Figurę 4.9). The selected process must also be loaded into memory (i.e., marked SLOAD). If the parent process has set SNOWAIT and the process is a zombie, the process is



Wyszukiwarka

Podobne podstrony:
f1 2 Mult (platform applications GUI-based applications Multithreaded applications FIGURĘ 1.2 Where
f1 2 Mult (platform applications GUI-based applications Multithreaded applications FIGURĘ 1.2 Where
f1 3 FIGURĘ 1.3 How HotJava and Netscape2.0 support Java applets.
f13 7 a ISAPI Extension Wizard - Ślep 2 of 2 Whal nolificalion priority will your filier have? C Hjg
f2 10 Packages Interfaces Methods Classcs Vanables Methods Exceptions FIGURĘ 2.10 How Javapackages
f2 11 FIGURĘ 2.11 D w doping software using the Java API.
f2 4 FIGURĘ 2.4 Thejavadirectory.

więcej podobnych podstron