Try this out

This is a discussion on Try this out within the Windows Programming forums, part of the Platform Specific Boards category; try this program, it will slow you computer down, I just want to make sure if it slows down a ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21