100% CPU usage after starting/joining a call

This problem has been persisting for a few months now, and I haven't found a fix. Sometimes when I would start or join a call, the first thread of my i7 would shoot up to 100% usage (Monitored with MSI Afterburner). I originally thought it was because I had an older version of Skype, but I updated to the latest version and still had the issue. To get the usage to go down, I either have to restart the laptop or put it into sleep mode. When I checked the task manager, Skype was only using 0%-2% of my CPU, but System and System Interrupts run at higher usage (6%-7% each). I am running Windows 8.1 on a laptop with the desktop version of Skype. Please note that this also does not happen every time, just on some occasions.
EDIT: It eventually happens, but not always right away.

Yes, you can use NI-DAQmx with Visual C++ and with Mesurement Studio 7 or later you also have Microsoft Visual C++ class libraries for NI-DAQmx.
If you are now developing a application I would advice to move to DAQmx since this the Traditional libraries are nolonger activly developed, we will only be adding new features and hardware to NI-DAQmx, thus for future support of the application it's better to use NI-DAQmx then Traditional NI-DAQ.
For more information on NI-DAQmx see:
http://zone.ni.com/devzone/conceptd.nsf/webmain/ee47b125bb9e053686256fbc0014c384?OpenDocument
Met vriendelijke groet / Kind regards,
Karsten
Applications Engineer
National Instruments

Similar Messages

  • UserEventAgent 100% CPU Usage after update to 10.6.2

    After a software update to my new Macbook pro, it is unusable with cpu usage pegged at 99.5% in the activity monitor. This goes down when I disconnect my Kinesis USB keyboard from the mac. Before the update, everything was fine.
    What's the way around this problem? I have an ergonomic keyboard.
    Processes: 47 total, 3 running, 44 sleeping, 193 threads 12:17:15
    Load Avg: 1.00, 0.75, 0.39 CPU usage: 1.46% user, 51.70% sys, 46.82% idle
    SharedLibs: 9128K resident, 8192K data, 0B linkedit.
    MemRegions: 5453 total, 252M resident, 13M private, 145M shared.
    PhysMem: 783M wired, 384M active, 176M inactive, 1342M used, 2753M free.
    VM: 110G vsize, 1041M framework vsize, 40023(0) pageins, 0(0) pageouts.
    Networks: packets: 25511/5152K in, 4726/1598K out.
    Disks: 20435/824M read, 7482/171M written.
    PID COMMAND %CPU TIME #TH #WQ #POR #MRE RPRVT RSHRD RSIZE VPRVT
    376 top 2.6 00:00.32 1/1 0 24 33 1076K 244K 1652K 17M
    373 bash 0.0 00:00.00 1 0 17 24 364K 244K 1036K 17M
    372 login 0.0 00:00.01 1 0 22 53 460K 244K 1568K 18M
    370 ssh-agent 0.0 00:00.03 2 1 33 56 1080K 368K 2400K 39M
    364 Terminal 1.8 00:02.13 5 1 112- 159 7656K 27M 19M 30M
    135 AppleSpell 0.0 00:00.26 2 1 35 54 3248K 14M 6676K 29M
    131 Safari 0.0 00:23.37 9 2 149 486 61M 31M 96M 213M
    127 System Profi 0.0 00:00.34 2 1 96 105 4124K 22M 9460K 32M
    125 mdworker 0.0 00:00.52 3 1 50 73 4432K 12M 12M 37M
    124 activitymoni 0.0 00:05.08 1 0 23 37 596K 244K 1120K 28M
    121 Activity Mon 0.0 00:06.66 2 1 112 271 4928K+ 37M- 18M 25M-
    104- My Day 0.2 00:03.23 7 2 135 252 12M 22M 22M 47M
    103- Microsoft Da 0.0 00:00.48 3 1 78 169 3064K 18M 8964K 32M
    100 AirPort Base 0.0 00:00.01 3 1 32 50 672K 244K 1640K 30M
    94 UserEventAge 99.9 06:01.31 3/1 1 174 104 2456K 2412K 5784K 41M
    90 fontd 0.0 00:00.31 2 1 81 113 3220K 728K 4316K 30M
    8

    I now have 10.6.3 and the problem has become worse. I found a similar thread where multiple people had a problem with the kinesis usb keyboard:
    http://discussions.apple.com/thread.jspa?threadID=1197549&start=0&tstart=0
    Will try removing the AppleHIDMouseAgent plugin.

  • 100% CPU usage after games are run

    Hi All
    Having a Strange problem with iTunes. All works fine unless I play a Steam based game e.g. Counterstrike:source. If I try and launch iTunes after closing a steam game sometimes (but not always) itunes.exe will launch, there is some HD activity, nothing else happens. If I check taskmanager itunes.exe is using 100% of the CPU.
    I have tried quitting and closing all possible tasks but iTunes will always launch in the same manner. A log out will not fix it, the only way to get iTunes to work again it restarting the machine.
    I have had this problem since the first windows release of itunes. Is it an issue within steam? Is anyone else getting this happen?
    Thanks
    Dan

    Tell the scanning software not to scan the entire iTunes folder. iTunes makes temp XML files every time you play a song. It does this to keep track of times & last date played.
    http://discussions.apple.com/thread.jspa?threadID=165247&tstart=0
    Or open up a ticket with the antivirus vendor.

  • Distiller 8 and 9 both locking up, 100 % CPU usage

    Not sure if its related, but probably, since it happened right after...I just transferred everything from my quad core mac pro to my new 8-core Mac Pro. Everything went well, but now Distiller 8 starts and then sits and gives the beachball of death, and one of the cores shows 100% cpu usage. (I have that utility that shows memory used, CPU usage, etc.). I hadn't bought Acrobat 9 yet so I downloaded it and installed, and Distiller 9 does the EXACT same thing. The ONLY thing I can call an "error message" is that I can see in the window after it launches is "Error in /Library/Application Support/Adobe PDF/Settings/PDFX4 2007.joboptions:/CheckCompliance out of Range."
    That message may have been there whole time, even when it worked, though. I don't know. At any rate, I need distiller working! Any ideas?

    Glad to hear all is well. Preference files can cause big problems. Eons
    ago, in the 1980s, I used a communications program called Red Ryder. I
    loved the program. After it was updated to a new version (it might have
    been called White Knight by that time), I started to have terrible
    problems. I wrote to their technical support. They couldn't duplicate
    the problem. It couldn't happen etc. I eventually got a little hot under
    the collar. After all, if I couldn't use my modem, I couldn't check my
    email, etc. It turned out to be a problem with my preference file when
    converted to the latest version, that was causing the problem. Since
    they always started with a new preference file, they couldn't duplicate
    the problem that was obvious to me.
    ...Mike

  • 100% CPU Usage caused by HMI

    Hi everybody:
    I'm working with LabVIEW DSC 8.2.1 in a system that monitors many variables of a plant, such a typical SCADA system. For this reason, the use of the graphic tools is highly used on the development of this system. Everything works fine, but I have only one problem.... the usage of the CPU.
    When I am working on the development system I (not the executable) I start the application and after the variables are initialized and every process has started and are running , the CPU usage is raised around 90 - 100%. After a few days investigating the reason of this, I realized thay when I change the view on the screen to another view, for example the block diagram of the application, while the application is still running, the CPU usage goes around 15 - 25%. I've tried these many times changing the view from Front panel to Block Diagram and viceversa and the result is always the same: Front Panel= around 100%; Block diagram or another view (other applications MMIs, or Block Diagrams, etc.)= around 20%.
    Another thing that I realized is that the other view (different to front panel) has to fill the entire screen to work the way I'm telling before.
    When I build and run the executable, the usage of the CPU is the same... (around 100%), but I can't see any other application, because the application built is the shell of the OS, so no other views are available.
    I don't know if there's some other consideration to take into account about the HMI when creating an application, and I'll appreciate very much your help.
    Thanks in advance!
    Ignacio von Unger

     From http://100cpuusage.blogspot.com/
    100 Percent CPU Usage when you run programs after you install Windows XP Service Pack 2
    CPU Usage 100% Symptoms
    When you run some programs, the CPU Usage meter in Task Manager may indicate CPU Usage 100%. When CPU utilization reaches 100 percent, programs will run very slowly or stop responding (hang) and your computer is freezing or crashing.
    Noteress CTRL+ALT+DEL to view CPU utilization, click Task Manager, and then click the Performance tab.
    These symptoms occur after you install Microsoft Windows XP Service Pack 2 (SP2).
    CPU Usage 100% Cause
    These problem occurs because of the user interface code that is included in Windows XP SP2. The high CPU utilization is caused by the additional overhead that occurs when the IsWindow function is called by the user interface code.
    RESOLUTION
    Hotfix information
    A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.
    To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:
    http://go.microsoft.com/?linkid=6294451
    Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:
    http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
    Prerequisites
    To apply this hotfix, you must have Windows XP SP2 installed.
    Restart requirement
    You must restart the computer after you apply this hotfix.
    Hotfix replacement information
    This hotfix does not replace any other hotfixes.
    File information
    The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel. Date Time Version Size File name
    30-Mar-2005 19:53 5.1.2600.2643 577,024 User32.dll
    30-Mar-2005 01:30 5.1.2600.2643 1,836,544 Win32k.sys
    if you still do not know how to Fix CPU Usage 100%?
    I suggest you try targeted software - registry cleaner to fix cpu usage 100%
    Because there are many cases causing high cpu utilization.
    1. If you do a lot of web surfing and are concerned about spyware, adware infecting your machine, they will cause system crashes and CPU utilization reaches 100 percent. Some good registry cleaner has the function of spyware & adware removal.
    2. You install many beta version of the software, Drivers are not certified, which resulted in many errors, you get high cpu usage.
    3.100% CPU Usage while you use Internet Explorer
    4. many unneed Startup Program.
    5.Others PC Errors. - DLL errors, runtime errors, Windows-Installer Errors, Windows Startup Errors,paths Broken DLLs, OCX, and ActiveX Components all will cause 100% cpu usage. Your PC will run very slowly.
    Registry cleaner can do a complete scan of your entire file system and registry in under 2 minutes! Fix High Cpu Usage. Improve PC Speed By Up to 70%!
    http://www.100-cpu-usage.com/ suggest you to download registry cleaner to fix 100% cpu usage too.
    PCErrorsfixer.com - Top 3 Windows Registry Cleaners, Improve PC Performance,5 Star Rated. Fix 100% CPU Usage, Runtime Error, DLL Error,Windows Startup Errors,Internet Explorer Errors, Speed Up your slow PC.

  • High CPU usage after closing a program.

    Okay, this is annoying. Doesn't happen on all programs, but too many.
    When I close an application, in normal way, alt+f4/press x/file->quit the program quits, BUT, "ghost" application starts, which raises to 100% CPU usage. Then I have to close it via sigterm/sigkill. This has happened (atleast) with mplayer, nvidia-settings (which doesn't even start, but cpu usage raises to 100% anyway, and ghost application starts) and WoW thru Wine. Now, I have absolutely no idea what is going on, and I've found nothing on google.
    I think it became after I upgraded to 2.6.29 kernel, it's 2.6.30 now and still the same.
    A little help please

    The nvidia-settings starts, as it shows on system monitor (htop, etc) but I am not getting the window, and cpu usage raises to 100% instantly. Terminal output:
    dfizzle@ohai ~$ nvidia-settings
    The valid values for 'XVideoTextureContrast' are in the range -1000 - 1000
    (inclusive).
    'XVideoTextureContrast' can use the following target types: X Screen.
    The valid values for 'XVideoTextureSaturation' are in the range -1000 -
    1000 (inclusive).
    'XVideoTextureSaturation' can use the following target types: X Screen.

  • [10.1.2] Protected Mode causing 100% CPU Usage/Extra Processes on Win XP 32-bit?

    Hello,
    I'm not 100% sure if the two are related, but I have a client who was seeing 100% CPU usage using Adobe Acrobat Reader X 10.1.2 on Windows XP 32-bit and Firefox 11. The acrord32.exe process would hang around after closing the main window and eventually leading to tons of processes and his CPU at 100% use. I believe disabling Protected Mode may have solved this issue. I didn't see it documented anywhere so I figure I'd post about it here and see if anyone else was seeing this resolved as well.

    I noticed 'only' 50 % CPU usage. Not during Reader usage with ~ 20 %, but it started after closing main window.
    Two instances of acrord32.exe were created - the moment pdf was opened - of which one was using zero CPU.
    After opening another pdf, 2 more processes were created, so 4 in total. Have seen 2 of them using 100 %.
    Issue is easily recreated.
    This is all in 10.1.3, no fix from Adobe, only THE fix from you: turning of Protected Mode!
    After which now only one proces is created, with 1 to 3 pdf documents opened at same time.
    This instance is then nicely shutdown after the last pfd is closed.

  • Recently FireFox often has been causing 100% CPU usage and locks up until it finishes the process (various ones). Clearing cookies/cache didn't help. Any ideas?

    Windows 2000 SP4, 1g RAM, Firefox 9.0.1
    We keep IE6 and Firefox open simultaneously for 2 different mail accounts. Firefox was always much faster even with 3 or 4 tabs open, but for the past couple of weeks when trying to update a screen the CPU suddenly goes to 100% usage and of course nothing will move until the particular process is finished. Closing one or more tabs does not help. If I close Firefox completely with Task Manager CPU usage goes back down to nil. After restarting Firefox CPU usage may or may not go back up depending upon whether it tries to continue the previous task that was locking it up.
    It did not do this with Firefox 3.6 but then again it didn't happen immediately after updating to 9.0.1 either.

    100% CPU usage occurred most often toward the end of the working day when busy trying to print on-line postage. We don't have any memory-consuming plugins but according to the knowledge base articles Firefox memory usage can gradually increase during the day even if you do nothing. It seems that may be the problem so we close and restart Firefox more often now as that usually fixes the problem. However, if we get stuck on a particular website update that causes the CPU to to go 100%, we can always start Firefox without previous tabs so the update will stop, or simply use a different browser until we have time to let the computer play games with itself.
    So our workaround of restarting Firefox turns out to be the final solution (until we find something better - will post it if we do). Vic

  • 100% CPU usage... does anyone else get this?

    Here is my code. I would have simplidied it for you... but I honestly have no idea where it went wrong.
    One second it is running fine, the next it starts taking up 100% of my CPU cycles. I can't figure out what I did to it to make it do this... nothing I added creates an infinite loop or infinite threads. It's just... weird.
    The code is probably too big for anyone to look at and tell me what's wrong, but can someone else download it and tell me if you also get 100% CPU usage? It needs to be run on Windows... it uses a couple JNI calls that are Windows-specific. Those calls were the first place I looked when trying to find the problem, but I have not changed that part of the code for a long time, and it has never been a problem before.
    Don't run the bat file... just navigate to the Watchdog2 directory and do 'java Watchdog'.
    Are there any tools that can help me figure out where the program is getting hung up? It's not freezing at any specific spot... just moving super slow and taking up 100% of my CPU. I'm so confused...
    Message was edited by:
    L4E_WakaMol-King

    Nevermind!
    Sorry for the trouble. The problem was that last time I compiled the code, it reverted back to and older version of a class I had compiled days ago. Why it did this is totally beyond me... but it did, and it just so happens that the old version of that class combined with the new version of my program were the perfect recipe for an infinite loop.
    Seriously, if you are in inveterate debugger, you might get a good laugh out of this. I've spent the last week and a half trying to find a way to set the Windows console into cbreak mode (single character processing rather than line-at-a-time processing), and I finally managed to do it by writing some c code and putting it into a DLL with the JNI. So now my program (which runs from the console) can process each character as it is entered rather than waiting for a line return. The older version of the class that got reverted was one that used System.in rather than the input stream generated by the socket. I had set it to System.in for testing purposes, and apparently that testing version is the one it got reverted back to. So combine the two, and you have a console that is feeding System.in each character as it is pressed and a socket wrapper that is listening infinitely. It was a mess... but an uncannily serindipitous mess...
    Ahh... debugging... good time...

  • DotMac Translator 100% CPU usage

    During the last few weeks I have a process called dotMac translator running and it's taking 100% CPU usage, I can kill the process off but it just comes back after about 10 minutes.
    Does anybody have any ideas on what's causing this and how to fix it.
    Thanks
    MacBook   Mac OS X (10.4.10)  

    run the 'top' utility and see what the processes are. You will certainly see some oracle procs in the list. can you post back the output here so we can review it?
    Also run the command vmstat 10 130 whilst the cpu is at 100% and post back.
    rgds
    alan

  • My laptop (win7 2ghz, 1gig) has 100% cpu usage with itunes installed (even when not running itunes) since the upgrade.  i had to uninstall.  tried installing but still the same problem.  my daughter wants the new ipad, but this is a serious problem.

    when itunes upgraded my laptop went to 100% cpu usage.  only solution was uninstall.  have tried itunes again as my daughter wants the new ipad.  still same problem tho so not keen to spend £400 on new pad without pc support.  anyone help?  (ps been using ipod touches 1 and 2, been great source of pleasure for my two girls, but cant sync them, so using the little shuffles for music, syncing to an old version of itunes on an old netbook - had the sense to switch off upgrades when the new version went wrong)

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Queue consumer stops with 100% cpu usage

    I'm trying to use Berkeley DB queue with transactions. When I tested what happens when transactions with DB_APPEND are aborted I found that while it works and DB_CONSUME correctly skips over rolled back records, unfortunately extents that have those records are never deleted, which causes database to always grow. Next I tried DB_CONSUME with database opened using DB_INORDER flag and it seems there's a serious regression in Berkeley DB that causes it to loop indefinitely with 100% cpu usage when it encounters a rolled back record. I tested various versions and found that this bug doesn't happen with 5.1.29, but it is reproducible with 5.2.42, so this regression might have been introduced in 5.2. I have also tested 5.3 and 6.0, and both have this behavior. There may be something wrong with the way queue records are rolled back, one indication of that would be that in 5.1.29 doesn't have neither of the two problems I found with DB_QUEUE: extents are deleted after being consumed, and there are no issues when consuming with DB_INORDER either.
    You can find Python code to reproduce this issue here:
    https://gist.github.com/snaury/027a3c546f5b0a62a440
    Sorry for using Python and not e.g. C++, but it's a lot shorter that way.

    We have looked at the issues and they are valid.   We will roll the fixes out for this in our next release of BDB.   The test case was very useful and really helped to speed the process up.    If you have any questions, please contact me directly at [email protected]  Thanks again for bringing this to our attention.
    thanks
    mike

  • 100% CPU usage by iCal

    For some reason my iCal application uses 100% of CPU. What can I do to avoid it?

    I had a similar problem with iTunes.
    Here's the link to what fixed my problem immediately.  Please note: my problem was resolved following just the three steps pasted below.  The original link has additional steps that may be necessary, although I did not employ them, and my problem of 100% CPU USAGE is gone!!!  Thank God!
    URL source:     http://www.hotcomm.com/faq/FAQ_ResetWinsock.asp
    Good Luck
    Copyright (c) 2009 1stWorks Corporation. All rights reserved.
    This article gives instructions for resetting Winsock on Windows XP and Windows Vista: 
    Reset Winsock (Vista) 
    To reset Winsock in Vista: 
    1.Click the Windows Start button. 
    2. Type Cmd in the Start Search text box and press Ctrl-Shift-Enter (keyboard shortcut to run Command Prompt as Administrator). Click Continue to allow elevation request. 
    3. Type netsh winsock reset in the Command Prompt shell, and then press the Enter key. 
    URL source:     http://www.hotcomm.com/faq/FAQ_ResetWinsock.asp

  • Run program in 100% cpu usage

    hi all,
    does any body know how to set the java program to utilize 100% cpu usage? thanks!

    class Empty implements Runnable {
        Empty() {}
        public void run() {
            while(true) {}
        public static void main(String[] arg) {
            new Thread(new Empty()).start();
            new Thread(new Empty()).start();
            new Thread(new Empty()).start();
            new Thread(new Empty()).start();
    }Not sure why you would want to do this though?

  • How to control timing without 100% CPU usage

    I wanted fine control over timing (in windows XP), but ran into two problems.
    Problem 1: If you use the Swing timer, or Thread.sleep, the resolution is limited to 10 or 11 milliseconds. There is a Thread.sleep(millis, nanos) function, but I tested it and it still has 11ms resolution in WinXP.
    Problem 2: If you use jbanes's GAGE timer, CPU utilization will always be 100%.
    Solution: Use a hybrid technique. I would love to have nanosecond resolution AND low CPU utilization at any speed (and if you have any suggestions, please post them) but for now:
    class /*name*/ extends Thread{
    public void run(){
              setDelay(delaySettings[speed]); //Set "delay" to the desired delay in nanoseconds
              long nanos;
              while(true){
                   if(running){ //"running" is a boolean that can pause or unpause the game
                        nanos=System.nanoTime()+delay;
                        tick(); //Do the game logic and graphics for one frame
                        if(delay>11000000){ //If the system timer can handle it
                             try{sleep(delay/1000000);} //delay/1000000 gives millis
                             catch(Exception e){System.out.println("Caught sleep exception: "+e);}
                        }else{ //use a nanotimer (cpu-expensive)
                             while(System.nanoTime()<nanos){}
                   }else{ //it is paused, so wait a bit
                        try{sleep(50);}
                        catch(Exception e){System.out.println("Caught sleep exception: "+e);}
    //The rest of your code
    }If your desired delay is greater than the system timer resolution (here, I have it set at 11,000,000 nanoseconds, or 11ms) then you can use the Thread.sleep(milliseconds) call, which will have approximately 0% CPU utilization until the thread wakes up. Theoretically, you could use this time for another thread, but at the very minimum, your computer should use less power / generate less heat. If your desired resolution is smaller than 11,000,000 nanoseconds, it goes into a loop that checks nanoTime()... which gives you 100% CPU usage, but is very accurate. This works pretty well if you want to control the framerate dynamically (I use the "-"/"=" buttons to adjust speed) and it handles "pause" events, though I'm sure there are better ways to do that.
    Note: The timing granularity above 11ms for this technique is probably 11ms, though the code could be modified to provide nanosecond granularity at any speed.
    Note 2: I found this to run 3% faster than when I used the GAGE timer.
    -Cherry

    Pause the game when u alt-tab away ^_^
    Thats what most native fullscreen games do (the
    non-networked kind atleast)Good idea, but the crux of the issue is really the underlying scheduler which allows
    the thread to race.
    How to "Eliminate" 100% CPU usage.
    Tony's Law of the exec constant. <<<<"Any thread or process running on a non-preemptive operating system MUST NOT use blocking
    IO, and MUST preempt itself at leat 20MS per iteration."
    The reason it is called a constant is because it is the minimum time needed to ensure
    the underlying operating system gets enough CPU cycles to function correctly.
    Every milliseconds below this increases exponentially the chance of locking up or
    crashing despite the speed of your system.
    Most people who program do not realize the the implications of running under defective schedulers
    such as the one provided with MS windows where, for example, you can block on a socket, and
    hang your whole system.
    >>> Do NOT use Thread.sleep() <<< but instead use Object.wait();
    Do not use blockng IO. If you have to use java.io, use available() to make such you ONLY
    read the exact amount of bytes you need without blocking and make sure to prempt
    yourself at least 20MS per iteration.
    ie:
    InputStream inputStream;
    while(working)
    Object waitObject = new Object();
    int readCount = 0;
    int availableBytes = 0;
    int  totalBytes = 10;
       while(readCount < totalBytes)
          if((availableBytes = inputStream.available())!=0)
              read() (the # of Bytes available)
          else
              synchronized(waitObject)
                   waitObject.wait(200);        // 5X per second poll
                    waitObject.notifyAll();
    Using wait() removes the current thread from being scheduled; Thread.sleep()
    leaves the Thread on the schedule list. wait() releases all monitors allow other
    threads to have them; THread.sleep() does not.
    The 100% CPU issue is especially bad under NT BTW.
    If you do this not only will your CPU usage go to negligible, but you
    will never again lock your system because of it.
    Good Luck!
    (T)

Maybe you are looking for

  • CUP mitigation wokflow

    Hi Everyone, We have configured in RAR, the workflow to send request for approval of Mitigation Owner using CUP Workflow. For Mitigation Control Using RAR  work fine, but unfortunately when we mitigated the Risks through the CUP request,  the workflo

  • How to create a 10.5.3 install DVD from 10.5 DVD

    Hi, since want to reinstall leopard I'm wondering if it's possible to install 10.5.3 directly although I just got the first version 10.5 DVD. Maybe there is a way of bundling the necessary combo updates and creae a new DVD ( or image ) and install fr

  • Service for Distributing Newsletters Created in InDesign

    Does anyone know of an email marketing service that can be used to distribute newsletters created in InDesign? I have been using Constant Contact and have been very happy with the service, except that it only allows users to distribute HTML/XHTML (or

  • Windows Phone Update to version 7.10.8107.79

    I have done the recent zune update and my Windows Phone version still says:  7.10.7740.16 Why when the front page of this site says differen?

  • Concurrent manager using lots of cpu & memory

    In the last few days, I have noticed the load on the production server as follows: load averages: 4.66, 4.86, 4.92 14:34:16 333 processes: 327 sleeping, 6 on cpu CPU states: % idle, % user, % kernel, % iowait, % swap Memory: 32G real, 7591M free, 23G