mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 12:11:34 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			360 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			360 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example15;
 | |
| 
 | |
| { Program to demonstrate the Nice and Get/SetPriority functions. }
 | |
| 
 | |
| Uses linux;
 | |
| 
 | |
| begin
 | |
|   writeln ('Setting priority to 5');
 | |
|   setpriority (prio_process,getpid,5);
 | |
|   writeln ('New priority = ',getpriority (prio_process,getpid));
 | |
|   writeln ('Doing nice 10');
 | |
|   nice (10);
 | |
|   writeln ('New Priority = ',getpriority (prio_process,getpid));
 | |
| end.
 | 
