plan 9 kernel history: overview | file list | diff list

1995/0110/port/portdat.h (diff list | history)

1995/0108/sys/src/9/port/portdat.h:503,5121995/0110/sys/src/9/port/portdat.h:503,512 (short | long | prev | next)
rename Nice* to Pri*; put old fields back
rsc Fri Mar 4 12:44:25 2005
1993/0501    
	NERR = 15, 
	NNOTE = 5, 
1993/1201    
 
1995/0102    
	NiceMax		= 10,		/* max nice */ 
	NiceNormal	= 5,		/* base nice for normal processes */ 
	NiceKproc	= NiceNormal-2,	/* nice for kernel processes */ 
	NiceRoot	= NiceNormal-2,	/* nice for root processes */ 
1995/0110    
	Nrq		= 20,	/* number of scheduler priority levels */ 
	PriNormal	= 10,	/* base priority for normal processes */ 
	PriKproc	= 13,	/* base priority for kernel processes */ 
	PriRoot		= 13,	/* base priority for root processes */ 
1991/0428    
}; 
 
struct Proc 
1995/0108/sys/src/9/port/portdat.h:586,5961995/0110/sys/src/9/port/portdat.h:586,599
1993/0501    
	Note	lastnote; 
	int	(*notify)(void*, char*); 
 
1995/0102    
	Mach	*wired;		/* machine this process must run on */ 
	int	pri;		/* scheduling priority - low is high priority */ 
1995/0106    
	short	nice;		/* time-passing algorithm - low is high priority */ 
1995/0108    
	char	yield;		/* force one lap in the runq */ 
	char	inlock;		/* temp hi proirity ~= 2*num of locks set */ 
1995/0110    
	Mach	*wired; 
	Mach	*mp;		/* machine this process last ran on */ 
	ulong	priority;	/* priority level */ 
	ulong	basepri;	/* base priority level */ 
	ulong	rt;		/* # ticks used since last blocked */ 
	ulong	art;		/* avg # ticks used since last blocked */ 
	ulong	movetime;	/* last time process switched processors */ 
	ulong	readytime;	/* time process went ready */ 
1993/1204    
 
1993/0501    
	void	*ureg;		/* User registers for notes */ 
	void	*dbgreg;	/* User registers for devproc */ 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)