Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Dec 31st, 2005, 1:54 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,886
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Setting a Script's CPU Priority

I have two scripts running on my server,
- the server-side script which handles all incoming traffic
- a server manager which automatically makes backups, configures my IP, reboots the server, etc...

The server-side script has been reconfigured through CherryPy to only take up 3-4 CPU cycles. Python by default will take up all the remaining CPU cycles.

This raises a problem. My server manager takes up %96 of my CPU, doing nothing but waiting for a checkpoint while my server-side script slowly fulfills the main purpose of the computer.

How would I flip these CPU priorities around, making CherryPy by default take up the remaining cycles (instead of 3-4), and Python only take up 3-4?
Sane is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:51 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC