BUU- Thanks for your comment. I thought of your option initially. However, the program is going to run on both NT4 and Win2k. There have been problems in the past with some workstations running NT4 (a quirky IE version hosed/disabled the scheduler). Many of those workstations are out of my administration, so mucking with the scheduler/browser setup is off limits.

With this program, all a user/administrator would have to do is add the program to their Startup group.


BrowserUK- I missed that logic error in my code. I had no idea my sleep line was being overlooked in that particular case. Thanks!


ybiC - That was a very useful node. Thank you. When I did an initial search with keywords "sleep high cpu", that node didn't turn up for me.


Fellow monks - The main point of the program would be to pop up a warning to users that their space was dwindling at a predefined threshold on certain drives.

I honestly had no idea that my infinite loop was causing the high cpu..I thought it was sleep.

I'm curious though as to why fellow monks have been giving my initial node some - rep.

I:

*felt not including the code would make the question more obscure

*felt the program in question was practical, and hopefully helpful to fellow monks

*felt that I was following post etiquette


*did research the question (not knowing that I had a crazy infinite problem rather than the sleep problem I thought I had) If not, let me know what can be improved. And thanks again. --slojuggler


In reply to Re: Sleep has high cpu by slojuggler
in thread Sleep has high cpu by slojuggler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.