" Thread .join();" slow down windows system

Hi,
I'm writing a multi-thread app. My app threads are CPU-bound.
For simplicity I'm starting to develop the multi-thread using only 1 thread.
My app use "<Thread>.join();" calls for inter-thread sync.
And now ... surprise!
If I launch my app on a Athlon 3000XP+ (with linux FC6x64 with jvm 1.6.0-b15)
I obtain 54000 msec execution time.
If I launch it on a Athlon 3800x2 XP+ (with WInXP-SP2 with jvm 1.6.0_02) I
obtain 80000 msec execution time!!!
BUT, If I replace "t1.join()" with a:
while(t1.isAlive())
Thread.sleep(100);
the execution time drop down to 57000 msec (which is, in every case,
bigger than Athlon 3000 exec. time).
Seem that join() method calls subtract CPU to the CPU-intensive thread!
I have missed something?
TIA

Ah yeah. Okay. Sure.
Have you considered reading this? http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html

Similar Messages

  • Svchost.exe slowing down my system terribly

    svchost.exe slowing down my system terribly. I ran the Kapersky program and no virus files came up. I am getting desperate. I am ready to kill my computer. Why is this process such a hog and how can I stop it?

    To find what is causing your computer to use more CPU than it normally does you need to run this. 
    Install the WPT (windows Performance Toolkit) http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt.aspx  , 
    Open a CMD prompt with administrative rights (right click it>run as admin) and run this command for 60 secs to capture the high cpu usage: 
    xperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d cpuusage.etl
    The trace will run and give you a warning then revert to a C:\ prompt
    The log will be in C:\windows\system32. 
    It should be called cpuusage.etl
    Please zip the file and upload it to skydrive (or another file sharing service) and put a link to it in your next post.
    Wanikiya and Dyami--Team Zigzag

  • Hi, I am using an old PC P2 450Mhz, 256 MB Ram. Is ver 3.6.16 ok for my system or will it slow down the system? Thanks

    Hi, I am using an old PC P2 450Mhz, 256 MB Ram. Is ver 3.6.16 ok for my system or will it slow down the system? NODD is the anti-virus. I am not happy with IE or goolge as these are taking too much space. Thanks

    The system requirements for Firefox 3.6 are:
    * Pentium 233 MHz (Recommended: Pentium 500 MHz or greater)
    * 64 MB RAM (Recommended: 128 MB RAM or greater)
    You exceed the minimum and are just short of the recommended processor. It should run OK but the only way to tell will be to try using it. Note that using add-ons can slow Firefox down, so if you start installing quite a few you may get performance issues.
    https://www.mozilla.com/en-US/firefox/3.6/system-requirements/

  • Does a partition for Boot Camp slow down your system?

    I'm gonna make a partition on my disk for bootcamp. Does adding a partition slow down your system when using Mac OS? I assume boot camp assistant creates a partition wherever there is enough required free space. And if this free space is in the middle of the disk, doesn't the system have to skip back and forth over the partition to access data?
    Or does boot camp assistant create the partition at the end of the disk?
    Thanks for your replies.

    Boot Camp partition is generally created at the end of the disk so to speak. While the partition is created, files are moved and arranged so that there is a contiguous space for the partition.
    NO it does not affect the OSx performance at all as long as you have enough free space in the OSx partition for it to perform satisfactorily.
    Axel F.

  • Safari slowing down my system?

    I swore by Safari when I first started using it back in 2008, but the latest version with 'webkit2webprocess.exe" is causing some huge slow downs.  I just can't figure out what's wrong, and why safari is sudenly a lumbering beast instead of the sleek predator that it used to be.
    My system constantly caches, the bhard drive is constantly w eatorking with this thing installed.  It eats up RAM, and more ram, and never dumps anything, untiol there's no more page filing space.  Even now, after I wrote that last sentence my HD went active again.  Sure enough, "webkit2" is eating up naerly a half gig of ram.  And now when I type, I can't see what I'm typing.  and now it's eating up my video ram because I've run out of file page space.
    who the upgraded this thing, the marx brothers?
    thjis used to be the best brower on the market, but hnow it's JUST a piece of ram eating junk.

    I also finger McAffee as the culprit, it's not necessary on Mac's as of 10.6.8+ Apple installed their own anti-OS X malware detector and it checks for updates like every 26 hours or so.
    If you need to clean the Windows malware off their files, the free ClamXav does the job nicely and doesn't bugger up the machine as it's run as you need it.
    For your other slowdown issues, I suggest you look through these tips of mine, my Snow Leopard is incredibly fast.
    Why is my computer slow?
    Diagnosing network issues
    Tune up your Mac here
    For Snow Leopard Speed Freaks
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • The little gear wheel keeps appearing thus slowing down the system

    My system is being slowed down by the appearance of the little gear wheel turning around & around.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT2055 Why does iPhoto crash or slow down my system significantly?

    When I use iPhoto to import or work on my photos, it slows the entire system down big time and iPhoto itself continuously shuts down and I have to reopen. Just to import photos it takes several attempts to successfully get them imported to iPhoto. I love iPhoto and what it does but it is killing my system! Help!

    What version of iPhoto and system are your running?  How much free space do you have on your boot drive. Post just the first 50 lines of the crash report.
    OT

  • Select statement from bkpf slows down the system

    hi guys,
    i have this syntax for this coding:
            SELECT * FROM bkpf
             WHERE bukrs = ekko-bukrs
               AND awkey = xawkey
               AND gjahr = i_ir-budat(4)
               AND blart = 'RE'.
            CLEAR: titab.
            titab-ebeln = itab-ebeln.
            titab-ebelp = itab-ebelp.
            titab-budat = bkpf-budat.
            titab-bldat = bkpf-bldat.
            titab-xblnr = bkpf-xblnr.
            APPEND titab.
         ENDSELECT.
    this coding really slows down the report seleection and sytem , can anybody advice on how to select the better way

    Hi Ester,
    First you need to avoid the select and endselect statement by using SELECT INTO TABLE.
    Second issue is u are using non-key fields in where conditions are aweky, belnr  and u r not using the belnr which is first key-field in the BKPF table.
    Third one is try to use the fields in correct order which it is in table say in ur where codition it should be like bukrs, gjahr, blart, awkey,....
    if you dont have a input field BELNR and u need to do really improve the performance with these input fields wht you have, its is better to create Secondary index with proper sequence for felds.
    But i am not sure to give permission to create secondary index bec it takes more memory occupation like what exact BKPF tbale contains, you need to permission from client people along with BASIS people.
    i am give sample code  :
    SELECT * FROM bkpf  " try to specify the internal table with exact fileds instead '*'
        into table tbl _ bkpf
    WHERE belnr = w_belnr
    and    bukrs = ekko-bukrs
    AND gjahr = i_ir-budat(4)
    AND blart = 'RE'.
    AND awkey = xawkey.
    If sy-subrc = 0.
    sory tbl_bkpf by belnr.
    endif.
    Let me know if any doubts.
    <b>Reward with points if useful.</b>
    Regards,
    Vija

  • Slow down noisy system fan in Windows idle mode on Portege M400

    Hallo again,
    has anybody managed yet to prevent the Systemfan from making noise running all the time, even when CPU usage is very low?
    I am using "Notebook Hardware Control 2.0 for Core Duo" but the Fanfeature is not implemented yet.
    I did not try the "TSB6A01KJ0000R01_TOSHIBA_WINBIOS_Update_18W.e xe" (Fan optimised) yet, as this seems to be outdated (20.9.2006).
    MSInfo32 shows Version 3.10, 28.11.2006 running on my machine.
    Thanks, Martin.

    Thanks for the link. I knew this post allready. So it seems to me, that there is no other solution to the problem yet as flashing an outdated bios and using a Core Duo rater Core 2 Duo CPU. For me a software-tool would be ok as well if there is no way to get a working bios. Otherwise you may have to do it the "hard way" by modifying the fan-voltage like so often...
    Thanks
    Martin.

  • CPU and GPU slow down after system upgrade

    Ok, I can't find anything similar to the question I have...but this forum goes on forever  
    As my system specs appear below, my machine was running quite comfortably a week ago, with same setup...minus the acrylic case and second 120GB hard drive.
    At that stage I had "nomal" benchmarking scores 3dmark03 - 5850, Aquamark3 41.000, PC mark 2002 - cpu7020 mem8438 hdd1050.
    Life was good and I loved my system
    Then I decided it would be cool to upgrade to an acrylic case (which has better cooling with 3 fans) and a second 120 GB HDD to make a striped raid array.
    My first concern was the raid Array. I was carefull to buy the exact same seagate hard drive, size etc. the original was only a month old anyway. The second was to use the intel southbridge chip for SATA RAID or the Promise controller? After researching these forums I decided to go with the Intel as it has more possible bandwidth and doesn't sit on the PCI bus.
    I got the new case and wearing those stupid white gloves, proceeded to move the components over and trash my "old" metal case.
    The windows NTFS format (full) flew by in 30 seconds and I was really impressed.
    Once windows xp and all it's drivers and updates were installed, incl sound and graphics etc. I did a 3Dmark 2001 test before upgrading to Dx9...what a bad mark! 3Dmark2001SE - 9950 (terrible for this system).
    I thought it was a DX problem...so I installed Dx9
    Then opened that corecenter program (the old one, the one that doesn't crash...)
    and my CPU was about 5c hotter than usual, it was running at 40-42c (I have standard intel cooling fan). It went up to 55 at times when running PC mark 2002.
    This didn't concern me too much a the system was stable at 32-34c and the northbridge read 60c (but we all know that's not true , more like 35ish.
    My PC mark 2002 is now cpu4200 - mem4800 - hdd1800
    (at least the HDD improved!) LOL
    I ran Aquamark3 next...29,900 (ouch!)
    Previously my CPU was 8,700 and GPU was 5300
    now the CPU read 4400 and the GPU 4600
    I don't really notice the speed loss when working, but games and benchmarks tell a different story.
    So, My question: What has happened? Why is my CPU power cut in half? and the graphics card slightly slower? The memory speed stayed the same and the HDD speed improved....not a worthwhile upgrade IMO
    What went wrong?
    Here are my theories.
    1) The CPU and system case is getting too hot
     Does the CPU "throttle" when it overheats? this could be the reason.
    Also both HDD get really hot and the fan in front blows air over them, this hot air could be going over the CPU or GPU. Maybe get 2 HDD coolers?
    should I buy a better CPU cooler like the Thermaltake spark7+ ?
    2) The PSU does not have enough watts
    I couldn't find traces of voltage lack or spikes...but it could still be a problem
    3) The RAID0 array is a strain on the CPU and chipset
      I'm not sure about this.
    My appologies for the lengthy thread, but I wanted to be sure that anyone trying to figure this out had as much info as possible  
    Thanks if u can help me figure this out.

    Quote
    Originally posted by Reaver
    When I originally installed the intel p4 cooler, I used artic silver ceramique paste...and the CPU temp operates at 36-38c with no load.
    Perhaps I should upgrade the overall cooling. Get a Thermaltake copper fan and two HDD coolers.
    Well, your temps sound allright, no need to worry them, if they really operate at that level.
    Quote
    The solution to set the FSB to 201Mhz sounds good. But do I set this in the BIOS or with Corecenter in windoze?
    Propably meant to adust your FSB at BIOS, at least that is what I would suggest.
    Quote
    I will try to re-install the VGA drivers because something strange DID happen when I first installed them. I started with the hercules driver CD, this installed CAT 3.2 drivers. I then upgraded to CAT 3.7 and before it completed I got an error window (send, dont send).
    Remove drivers AND ATI control panel first, and then re-install. Use drivers from ATI site, and rather Catalyst 3.7. I Have had problems with 3.8 Catalysts.
    Quote
    Still wouldn't explain why the CPU seems so crippled. I have managed to get a "normal cpu score of 7000+ in PCmark2002 by shutting down, restarting later and killing every process except explorer.
    Do you have any processes that seem to eat more juice thant hey should?  Arrange your processes by CPU usage and see if there is something strange.
    Quote
    If this cant be fixed I will reinstall over the weekend. Does anyone know of the RAID0 array on the southbridge causing a system slowdown?
    I'm using Intel RAID and it works perfectly, no extra CPU usage is shown and it's pleasantly fast!
    And Install latest Intel INF updates and Application Accelerator from Intel site. That's what I'm using, and works fine.

  • Websites that slow down your system

    My system was running slow there for a while, so I looked in activity monitor and found that safari was using up a huge chunk of my CPU. I managed to narrow this down to a particular site that I recently started visiting. Is there anyway that I can change my settings so as to use this site without it monopolising my CPU?

    This issue may be the same as these as the symptoms are similar:
    http://discussions.apple.com/thread.jspa?messageID=9522744,
    http://discussions.apple.com/thread.jspa?messageID=9592205
    and http://discussions.apple.com/thread.jspa?messageID=9399361
    Before the situation TLP describes in his thread (9399361) I also encountered that Safari was using the amount of CPU you describe here.
    This is an odd issue.
    Regards, TOm

  • ADSL modem D-Link DSL-G684T slow down my system

    Hello!
    I`m using Archlinux [core dump] with GNOME 2.20 and from yesterday I have got new modem-D-Link DSL-G684T.. When I plug Eth0 connector and internet is up, system is totaly slow!!! I try this on machine with Windows XP- Here work all fine. What is the problem? Some wrong settings? Is here some special setting for Linux machine?

    This is my /etc/resolv.conf:
    # Generated by dhcpcd for interface eth0
    nameserver 192.168.1.1

  • Why does CC 2014 slow down my system

    Huge Fan. Serious problem. Brand new 1 Terabyte Hard Drive in my MBP.  2 Gigs of RAM
    So loaded all my software into the computer, which has been working fabulous for years. Had CC 2013 for all our Adobe products. When loading the new suite with CC 2014 --- now Illustrator takes 5 minutes to open a 3mg Business card file. 3 minutes to save it as a PDF or AI file. PLEASE... someone tell me if I can get the old CC 2013 suite instead of this one?
    I have looked for the Adobe Driver, as various discussions seem to indicate that this is an issue, yet I cannot see a folder by this name nor does it show up in my library folder.
    Thoughts?
    Does anyone from Adobe read this?

    Threads a while back suggested that Word 2004 could run slow on Intels because it was not universal and used Rosetta. 512 memory, standard intel mac mini issue at first, was often problematic you needed at least 1gb which they now ship with. Maybe having not one but two applications open within Word is still causing the problem. But the G4 I find harder to understand: at any rate my own Word 2004 works fine on this G4 macmini (and on an old G3 iBook). Though I only use Word not Excel.
    I bought this G4 secondhand on eBay because I knew from threads in the forum about problems with Word that the early intels were having so I didn't go for a new machine. I gather that the next Word for Mac which will be universal is due out early in the New Year, having first been forecast for 2007.

  • Can i install mavericks on 2009 aluminium macbook 13 inch which came with snow leopard? or will that completely slow down my system

    I have a 13 inch late 2009 macbook that came with snow leopard. At present I'm using mountain lion, will it be advisable to upgrade to Mavericks or my system cannot handle that and may completely shut down….since my model is out of make now I'm scared of taking chances. 4gb memory and 2.26GHz processor. Please suggest.

    First make a clone backup of  your Mountain Lion drive. If you upgrade and find you are not happy with performance, you can easily use the clone to revert.
    Both of these applications can be used to create a clone. You will need an external drive for the backup.
    SuperDuper! http://www.shirt-pocket.com/
    CCC http://www.bombich.com/download.html

  • Creation of 1000 Cost Centres will slow down the system performance

    Hi,
    Can anyone suggest us, that if we create more than 1000 Cost Centres will there be any system/server performance issue in
    SAP Business One.
    Thanks,
    Vishwa

    Hi Vishwa,
                   You are 50 % correct, Application performance may get slow but it won't clash.
                   Because If you create 1000 of Cost Center, for each transaction system have to search and have to do the entry for corresponding cost center also. So there is a chance to get low performance. But application won't crash.
                   Also you check other mean also like network configuration, protocol priority, cache memory size increasing, page fault size and others.

Maybe you are looking for

  • When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

    When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

  • License recovery

    Greetings, I have bought an family license for iWork at best buy a few years back. I have an old macmini that is going to serve as homework tool for the kids. I wanted to install the iWork there for them, but can't find the original CD. Can't downloa

  • Workflow Question

    Hi, I have a quicktime self contained movie I've exported from FCP. It's just over 6 hours long (it's a seminar). The file size is 34 gigs. It's 854x480 Apple Intermediate Codec, Linear PCM bitrate 14,176 Does anyone have a workflow suggestion for me

  • How to create a valid database User/Group for installing Linux 5,3

    HI: I am trying to install E-Business Suite on LINUX and gave me the following error report Unable to validate Database User/Group :oralce /dba Provide a valid Database User/Group for the installation. when I was installiing on Windows, it did not ga

  • Won't remember my password

    I have not opened my mail program for a while, but when I went to use it today, it would not allow me to connect to the internet and does not remember my password. I have gone through all of the steps with keychain and it still has not fixed the prob