- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I run a Monte Carlo program on my home computer that can run for days. How can I lower its excution priority so other applications (like Word) don't have annoying pauses, but the program will execute when no one is using the computer?
Keith
Keith
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This piece of code put somewhere at startup should solve it:
USE DFWIN
i = SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS)
Jugoslav
USE DFWIN
i = SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS)
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page