in reply to "niceing" a CGI script
If your OS supports it, you could use setpriority from BSD::Resource.