LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-08-2009, 11:40 AM   #1
RossR
LQ Newbie
 
Registered: May 2009
Location: UK
Distribution: Ubuntu: Jaunty Jackalope
Posts: 13

Rep: Reputation: 0
Modifying the time slice for user processes.


Hi all,

Does anyknow know how I can modify the time slice for user processes? This exercise is purely educational -> (an assignment).

I found in kernel/sched.c a preprocesser directive:
Code:
#define DEF_TIMESLICE  100 * HZ / 1000
And then found out that just modifying this statement and rebuilding was not the correct way to go about doing this.

Thanks.

Last edited by RossR; 06-08-2009 at 11:42 AM.
 
Old 06-08-2009, 02:00 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Check out man nice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow user to mount NFS partition without modifying fstab borkhuis Linux - Networking 2 09-23-2008 04:03 PM
Modifying User and Group IDs Woodsman Slackware 3 09-01-2006 10:34 PM
How many processes have you had going at one time? IamI General 1 03-01-2005 08:30 PM
How to change time slice of linux? zhu_liheng Programming 1 12-19-2003 03:52 AM
modifying configuration files while logged in as a regular user jgallas Linux - Security 3 08-13-2003 10:31 PM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration