How much sleep time should i set

hi ,
i have a 110 threads running concurrently all making socket connections connecting to a server and performing some operation , i just want to know how much sleep time should i set so that all the threads keep working fine without hanging the program and also do their work

Is there nothing in checkPacketAndSendMessage? Are your 100 threads the producers of the messages or is it another thread?
If you want to send as many messages as possible, then why set in a sleep at all? If you are worried about responsiveness on the machine it is running on, you should just lower the priority of the java process at the operating system level. It all comes down to how many messages per second you are required to send.
So far this is not a concurrency problem, maybe you should post it in the Java Programming forum or networking forum.

Similar Messages

  • How much video (time) should fit on standard DVD?

    Importing from VHS to iMovieDVD then "sharing" to iDVD to Burn to Disc.
    What should my expectations be regarding amount of video on one DVD? It looks like 1 hour of video will fit on the DVD (4.2gb).
    The specs on the DVD says I can record 2hrs at SP but didn't seem to have an option to select prior to iDVD burning to disc.
    Would like to get at least 2 hours on one disc since I'm only archiving video and highest quality is not a requirement.
    Thanks
    iMac   Mac OS X (10.4.9)  

    Welcome to discussions:)
    Question 9: How much material can a single DVD disc hold?
    Answer: A DVD-R disc can hold about 4.7 GB. This allows up to 120 minutes of high-quality video to fit on a DVD.
    From iDVD Help:
    http://docs.info.apple.com/article.html?artnum=60788#faq9
    :)Sue

  • How to estimate how much CPU time is parse related DB 9i wide .

    Hi,
    I'm trying to estimate how much CPU time is parse related and next compare that value after i.e. cursor_cache setting. So far I've found :
    parse time cpu
    parse time elapsed
    in v$sysstat .
    Are there good indicators for my needs ?
    Basically when I get CPU time from statspack and parsetime_cpu (somehow) i can derive percentage usage.
    btw how is 'CPU time' in statspack calculated ?
    I'm running AIX DB 9.2.0.8 EE , can take historical data from statspack .
    Regards.
    Greg

    Hi,
    I'm trying to estimate how much CPU time is parse related and next compare that value after i.e. cursor_cache setting. So far I've found :
    parse time cpu
    parse time elapsed
    in v$sysstat .
    Are there good indicators for my needs ?
    Basically when I get CPU time from statspack and parsetime_cpu (somehow) i can derive percentage usage.
    btw how is 'CPU time' in statspack calculated ?
    I'm running AIX DB 9.2.0.8 EE , can take historical data from statspack .
    Regards.
    Greg

  • How much recording time on my iphone 4 voice memo?

    How much recording time on iphone4 voice memo?

    I would suggest that it depends on how much free space you have on the phone. I have done voice memos of over an hour before, and have read of other users reporting larger ones. I do not believe there is any documented source of what size you can do.

  • Is there a way to view how much charging time is left when charging iPod?

    Is there a way to view how much charging time is left when charging our iPods (without having to disconnect and play a song to see the little battery icon)? The iBooks tell us the percentage and approximate time left to full charge. This would be a great feature for iPods as well, right? How can we suggest such a feature to the Mac techs for the next update?
    5th Generation iPod, iBook G4   Mac OS X (10.3.9)  

    determining an ipods estimated remaining battery life is difficult because it doesnt know how long the backlight will stay on, how many times you change a songs, etc.
    those are all variables that change the amount of battery

  • My time machine backup external hard drive has failed.  I have a newer external drive already connected to my MAC but can't figure out how to get Time Machine to set up on it?

    My time machine backup external hard drive has failed.  I have a newer external drive already connected to my MAC but can't figure out how to get Time Machine to set up on it

    http://pondini.org/TM/21.html

  • HT201274 My iphone4 is taking more than 5 hours to erase all the data still it is under process , still how much more time i have to wait for my mobile to ON

    My iphone4 is taking more than 5 hours to erase all the data still it is under process , still how much more time i have to wait for my mobile to ON ?

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • What are the considerations in deciding how much memory I should get in an iPhone5?

    What are the considerations in deciding how much memory I should get in an iPhone5?

    do you intend to store a large amount of music on the phone
    do you want to use the phone to watch / rent movies from itunes
    do you like taking lots of photos and videos and keeping them on your iphone
    do you want to keep mulpitple high graphics (3d) games on the phone

  • How much video time will a 32gb ipad air record? (in 1080p)

    How much video time will a 32gb ipad air record? (in 1080p)

    At 1080p About 4 hours worth of video.

  • HT1863 i have set my phone to reset 5hour ago,but it is not done yet,how much more time it will take??

    how much time requied to phone rese?? im waiting from 5 hr still its not done pls help me

    Since no one here can possibly know what you specifically mean by "tried everything that other people are saying", no one can determine what you did wrong.  Also, you didn't say what computer OS you use.
    Read and follow ALL recomendations in the following aritcle appropriat for your computer:
    iOS: Device not recognized in iTunes for Windows
    iOS: Device not recognized in iTunes for Mac OS X

  • How much download time is used for facetime

    hi was wondering how much megabit a ipad2 use's when facetime is used is there a time line like 4mb for 4min
    thanks

    Facetime is not a download issue, it is a more or less instantaneous two way communication.  But that should not be an issue considering wifi only.    From experience with a metered wifi connection, facetime operates well on a .250 meg connection.  But that is kind of the edge.  Anything less i would question the viability of the connection.
    What are you really trying to figure out?

  • How much swap space should I allocate? [SOLVED]

    Hey guys,
    I am planning on installing Arch Linux KDE on my Lenovo Y470: I5,4 gig ram, Nvidia gt 540M. How much of swap space should I have ?
    And I could use some clarification on "rolling release" as to what it means :-)
    Thanks
    Last edited by pyarch (2011-10-01 03:18:43)

    karol wrote:
    The packages get updated to whatever the upstream calls stable release. You get some updated packages every day.
    There's no Arch Release, but we do have an iso you use to install the system for the first time.
    My today's update:
    [2011-09-30 16:41] Running 'pacman -Syu'
    [2011-09-30 16:41] synchronizing package lists
    [2011-09-30 16:42] starting full system upgrade
    [2011-09-30 16:42] upgraded vim-runtime (7.3.294-1 -> 7.3.322-1)
    [2011-09-30 16:42] upgraded vim (7.3.294-1 -> 7.3.322-1)
    Ok, thanks alot
    fingers crossed, hope my installation goes well

  • How much HD space should I partician for Windows XP?

    I am upgrading to a new (2010) iMac i5 with 1 TB HD and I was wondering how much disc space I should make for Windows XP? I only have a couple of special apps that I use in Windows and the attending files do not take up much space so other than the OS I may not need too much, but would appreciate a little starting point. Thanks.

    I got this mixed up with my Shakespearean readings. I should be partition. I hit the key before reading.

  • How much RAM & CPU should I allocate for Windows 7 Ultimate?

    I am in the process of setting up my new 27" iMac i7. I'm brand new to Apple computers so this is a learning curve for me! I have installed Parallels Desktop 5 so I can run Windows 7 side by side with Snow Leopard. Now I am trying to install Windows 7 Ultimate but I don't know how much RAM and CPU to allocate to my virtual machine. Has anyone done this and can anyone help? I have 8 gb RAM and 1 tb Hard Drive.
    Thank you for your help!

    Hello SwissCanuck,
    Just FYI, with regard to 32-bit and 64-bit Windows 7:
    You will not be able to "upgrade" from a 32-bit version of Windows 7 to 64-bit -- the architecture between the two is too drastically different to allow such a change. To learn more about the differences between a 32-bit operating system and 64-bit please go to the following link: http://windows.microsoft.com/en-US/windows-vista/32-bit-and-64-bit-Windows-frequ ently-asked-questions
    Additionally, check out the requirements here for Windows 7:
    If you want to run Windows 7 on your PC, here's what it requires:
    •1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
    •1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
    •16 GB available hard disk space (32-bit) or 20 GB (64-bit)
    •DirectX 9 graphics device with WDDM 1.0 or higher driver
    Obviously covered as per your hardware. Essentially, it is always better if you run Windows 7 as a "Native OS" you can do this with boot camp from Apple. Typically, the performance is not as fast in virtual environments
    John M
    Microsoft Windows Client Team

  • How much maximum session can be set in oracle 9i,10g,11i

    Hi Team,
    This is the question came to my mind how much maximum number of session can be set in the database. is there any database version dependencies. like in 9i we can set this much session and 10g so on..
    Please help me..
    Thanks..

    For all the releases, SESSIONS parameter the value can range from 1 to 2^31. Its mentioned in the Oracle Document.
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams220.htm

Maybe you are looking for

  • IPod to iPad Mini via iTunes on a laptop.

    iPod to iPad Mini via iTunes on a laptop. My wife has an iPod 80 GB Serial 8M744BXQY5N Model type MB 029 1.1.2.PC Her iTunes account was on an old laptop long gone She does not know what her old Apple ID details for her iPod are. I have now bought he

  • How to make final (read-only​) version of a *.vi

    ... so that the *.vi is only runable but not editable...

  • Adobe pro 9 creating blanks

    HI, I'm hoping someone can help me out.  I converted an excel document (which chooses the page I am saved on to convert) using Adobe Pro 9.0 and then ran my "Flowfile" which filed it into my efiling cabinet. (I am also running Windows 7 incase that i

  • To save a pdf populated using xdp in asp

    I have a dynamic pdf designed using adobe designer 7.0 having repeated subforms. From asp, I am populating the pdf using xml <br /><br />as follows:<br /><br />Response.Write "<?xml version=""1.0"" encoding=""UTF-8""?>"<br />Response.Write "<?xfa gen

  • Automatical creation of activities with attached document

    Hello, I want to create activities with an attached document, but that should work automatically. I just have the bp-numbers for creating the new activities , and for attaching the documents, the documentname is equal the bp-number. Now I should now