 06b6e5624a
			
		
	
	
		06b6e5624a
		
	
	
	
	
		
			
			- sys_schedule can change only selected values, -1 means that the current value should be kept unchanged. For instance we mostly want to change the scheduling quantum and priority but we want to keep the process at the current cpu - RS can hand off its processes to scheduler - service can read the destination cpu from system.conf - RS can pass the information farther
		
			
				
	
	
		
			16 lines
		
	
	
		
			296 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			296 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "syslib.h"
 | |
| 
 | |
| PUBLIC int sys_schedule(endpoint_t proc_ep,
 | |
| 			int priority,
 | |
| 			int quantum,
 | |
| 			int cpu)
 | |
| {
 | |
| 	message m;
 | |
| 
 | |
| 	m.SCHEDULING_ENDPOINT = proc_ep;
 | |
| 	m.SCHEDULING_PRIORITY = priority;
 | |
| 	m.SCHEDULING_QUANTUM  = quantum;
 | |
| 	m.SCHEDULING_CPU = cpu;
 | |
| 	return(_kernel_call(SYS_SCHEDULE, &m));
 | |
| }
 |