Thread: Try this out

  1. #1
    Former Member
    Join Date
    Oct 2001
    Posts
    955

    Try this out

    try this program, it will slow you computer down, I just want to make sure if it slows down a dual-processor machine

    Oskilian

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
    {
        SetThreadPriority(GetCurrentThread(),THREAD_PRIORITY_TIME_CRITICAL);
        while(1);
        return 0;
    }

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    heh, better not run that program too many times. Windows has been known to exact vicious punishment on those abusing thread priority levels for no reason.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed