Blocking the applet and main threads ?

The thread that runs the Applet callback methods like init() and start() is a thread named �applet-your.package.your.classname.class�.
If I am doing a blocking method call, i.e. a method call that does not return immediately like doing I/O read on a socket connection, is it ok to do it on the thread mentioned above ? In other words, is it ok to hang/suspend/block the applet thread ?
What about blocking the �main� thread that calls
public static void main(String args[]) {�}
Thanks.

eminformatics, thanks for the reply.

Similar Messages

  • Two days ago, I have a new iphone 4S. After I installed the OS and start the iphone, I found a strange screen says "!9D/JC" that blocks the iphone and I can not access the iphone until click many times on the "Desmiss"  button at the botom of the screen.

    Two days ago, I have a new iphone 4S. After I installed the OS and start the iphone, I found a strange screen says "!9D/JC" that blocks the iphone and I can not access the iphone until click many times on the "Desmiss" button at the botom of the screen.
    I appreciate if you could provide me support to solve this problem especially it consumes the battery a lot.

    Another post originally dated 5th Feb, 2012 with a slightly different unheard of error "%7D/JC".
    https://discussions.apple.com/thread/3710903?start=0&tstart=0
    The user also claimed that he didn't meddle with iOS. No solution could be found though.

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Hello my iphone 3gs just been stolen how can i block the iphone and how could i track it i don't know for sure if i have find my iphone? please help i got many accounts on it and i don't have a passcode :((

    hello my iphone 3gs just been stolen how can i block the iphone and how could i track it i don't know for sure if i have find my iphone? please help i got many accounts on it and i don't have a passcode :((

    It was never free for the 3GS.
    It is if the initial sign-up is done on an iPhone 4, iPad or iPod touch 4th gen.
    From http://support.apple.com/kb/HT4436:
    After I sign up for Find My iPhone for free, can I use it on other iOS devices?
    Yes, if your devices are running iOS 4.2. For example, you can sign up for Find My iPhone for free on your iPad and use the same account information to sign in to MobileMe on your iPhone 3GS and turn on Find My iPhone.

  • HT4543 Audible fan sounds (noise). Nothing is blocking the vents and the temperature in the room is normal. Fan goes on and off, sometimes on for a minute.

    Audible fan sounds (noise). Nothing is blocking the vents and the room temp. is normal. Fan sound goes on and off but this morning the sound came on for well over a minute.

    Since you don't say how old your iMac is, have you cleaned out the dust? Dust buildup can lead to over heating issues. Remove any and all things plugged into it including the power cord, Remove the RAM access grille. Vacuum all openings starting with the RAM access area (air intake). Vacuum all ports and plugs, DVD slot and the opening across the top of the rear of the body. Blow compressed air through all your openings and vacuum again to remove any dust you loosend. Reinstall the RAM grille. Plug in the keyboard and mouse if not blue tooth. Insert power cord...
    You are now in a perfect position to do a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.
    Here is a Widget to monitor your temps and other operations:
    http://islayer.com/apps/istatpro/

  • Packaging the applet and driver into a jar

    is it permitted to package the applet and any JDBC driver into a jar for distribution for free/shareware

    Sorry Mr. Darryl Burke,
    I really had no idea where to post you see. And also I wasn't aware about the rudeness of "cross posting". I sincerely apologize for that.
    Besides, since you know that much about politeness and stuff, instead of posting something that won't help anyone you could post an answer first, or a link for that, and then whatever you like, such a correction or just a line saying "Habitual cross poster". Remember, this is a forum an the goal is to help people.
    And here, I'll post the answer to my own question (sorry if not the appropiate sub-forum)
    ==
    there's no need to bundle anything.
    just keep the jar and the jad files on the server. Add the new mime types in the server's configuration (for the jad and jar files) and then provide a link to the user pointing to the JAD, such as
    http://server/whatever/appli.jad
    and by following that link the users will be able to download the app to their phones.

  • Combining the fixed and cached thread pools

    Is there a way to 'combine' the behavior of cached and fixed thread pools ? I have a requirement where
    - at startup, I need to execute a fixed number of short-lived tasks at the background
    - after startup, on demand, I need to run one short-lived task at a time
    If I use a fixed thread pool for my startup processing, it creates the fixed number of threads to process the tasks. But subsequently, those many threads are not required since my task submission is going to be one at a time. The remaining (n-1) threads therefore are really sitting idle & useless.
    If I use a cached thread pool, then I cannot constrain the number of threads to run at startup (since it creates one for each task). Though it ends up taking those threads out after they are idle for a fixed period. But I'm worried that it might create many threads and possibly slowing down the startup ?
    Is there a way to create a pool with a fixed number of threads but 'remove' a set of threads when they are idle ?
    TIA

    v_bala wrote:
    Thanks. The SynchronousQueue worked as expected. But I tried a LinkedBlockingQueue with size 1 hoping that would cause the second task submission to cause a new thread creation. It didn't. Instead it queues up the request (maybe the doc in ThreadPoolExecutor says that when it mentions "If corePoolSize or more threads are running, the Executor always prefers queuing a request rather than adding a new thread"). I suppose if I were to try another it would create another thread ? (I was testing with only two tasks - the first one ended up creating a thread for the task and the next got queued since the queue capacity is 1)yes, the TPE will not start adding threads until the queue starts rejecting them. kind of odd in my opinion, but that's how it works.
    Btw, that was an interesting idea to add a task that scale the core pool number down ! Currently it comes back down to just the one thread (my core pool size is one) after the idle timeout but your idea may give me a slightly better response since it will scale down the core pool size quicker....I suppose if there was a task submission before that idle time there maybe a performance hit (but I don't anticipate that in my case )?actually, that won't scale things down any faster. changing the core pool size will not ditch the other threads immediately, they will still stick around until they idle timeout. changing the core pool size allows you to not worry about the queue implementation (the first solution). you can set the initial core pool size to your "max" size on startup, then drop it down for the normal processing, all the while using a linkedblockingqueue of unlimited size.

  • Hey Apple (: Just wondering if i block the facebook and twitter on my ipod touch with a password will is effect the password on the app store ?

    Hey Apple (: Just wondering if i block my facebook and twitter on my ipod with a password does this password effect the app store password or can they be different ?

    I did not blocked it . My mum did she got the people from the store to do it but i'm just worried that the password she use to block those sites might effect the password for my appstore. So you're saying that it won't effect and that i can use a different password ?

  • Can you mix calls to the Posix and native thread librariess?

    Is it possible to mix calls to different thread libraries within the same process.
    We have a shared library interface to our product which is called from a customers application. In order to provide a thread safety we need to protect global data in this library with a mutex. However we do not know which thread library (if any) will be used by the calling application.
    If we used a Posix mutex in our library would it work if the calling application was implemented using non-Posix threads?
    Are the Posix and Solaris thead header files different interfaces to the same underlying implementation?
    What overheads are there loading the thread library when it is not needed? If for example the calling application was implemented without using threads.
    Would we have to test our interface with the different thread implementations available? eg /usr/lib/lwp/libthread.so, /usr/lib/sparcv9/libthread.so as well as /usr/lib/libthread.so.

    I know the author of the original post wrote this long ago, but I thought I'd write a reply in case anyone else stumbles on this like I just did.
    Is it possible to mix calls to different thread
    libraries within the same process.Yes. Though you have to be careful about compilation and link flags, and the order of libraries specified on the link command-line (-lpthread and -lthread). For complete information, refer to the Solaris "Multithreaded Programming Guide", available at http://docs.sun.com in the the Solaris 8 (or whatever version) Software Developer Collection.
    If we used a Posix mutex in our library would it work
    if the calling application was implemented using
    non-Posix threads?Yes.
    Are the Posix and Solaris thead header files different
    interfaces to the same underlying implementation?Yes, I believe so. POSIX specifies an interface. I think the Solaris threads implementation was part of the Solaris OS before pthreads were supported on it. Anyway Solaris really uses "LWPs" (Lightweight Processes) at the kernel level, and user-level threads (POSIX or Solaris threads) are mapped onto LWPs.
    What overheads are there loading the thread library
    when it is not needed? If for example the calling
    application was implemented without using threads.You should never link to the thread library when it is not needed. It results in unnecessary overhead. This is documented in the book mentioned above.
    Would we have to test our interface with the different
    thread implementations available? eg
    /usr/lib/lwp/libthread.so,
    /usr/lib/sparcv9/libthread.so as well as
    /usr/lib/libthread.so.I don't think so, but judge for yourself; I suspect if any inconsistent behavior is found it will have more to do with defects in these implementations than in your own code. On Solaris 8:
    - /usr/lib/libthread.so is the default Solaris threads library that does a many-to-many mapping of user-level threads to kernel-level-lwp's
    - /usr/lib/lwp/libthread.so is the "alternate" Solaris threads library that does a 1-to-1 mapping of user-level threads to kernel-level-lwp's
    - /usr/lib/sparcv9/libthread.so I think is the fully 64-bit version of the default libthread
    Hope this helps somebody.

  • MY IPS CAN NOT BLOCK THE SKYPE AND MSN SIGNATURES

    I friends I have a Cisco ASA 5520 with an AIM Card (IPS), I have enable the IPS, but It is not working properly because I enable the skype and MSN signatures ( and I put the block inline connection, and TCP reset connection), but all the PCs can login into Skype and MSN, I did the actualkizatiosns, versions, signatures, OS, but the problem continue. How can I solve this Problem????.
    regards
    Rafael Barba

    If you are sending the traffic to the IPS, and can see hits for the signature "MSN Messenger Activity" and if you only want to block this for certain IP addresses then the solution to your problem is to use 'Event Action Filters' for the existing Signature. By default the signature is disabled so you will have to enable the signature first.

  • Deploying an rich client (Applet and main method)in iPlanet.

    I would like to know how to deploy an applet client and a main() method client in the iPlanet Application Server. Adv. thnax for your replies.

    Dear punit,
    Thanx for ur reply.
    but then where will i mention the JNDI name which we usually supply in DD during the deployment of a WAR file.
    When i try to run the standalone appln. i get an error, because i have not supplied a jndi name in the server. where will client find out the jndi name from, because nothing is specified in the server(but in the case of servlet we spcify the JNDI name in DD XML file.)
    R u working currently on iAS6.0.
    Thanx and see if u can reply me ASAP.

  • How to block the incoming and outgoing calls by programmatically

    I want to block incoming and outgoing calls from my application. Is it possible?

    For App Development questions, please post in the Development Forums made available to you as a Developer.  We cannot answer these questions here.
    https://discussions.apple.com/community/developer_forums

  • Firefeox update 24 , becomes black when restoring the windows and also is blocking the close and minimize butons . How to FIX ?

    Recently I have updatet to ff verzion 24 , since then Im experiencing that problem as i mentioned in a question.

    Hello,
    Please open Firefox in Safe Mode and see if the problem still occurs. You can launch Firefox into Safe Mode directly by holding down the Shift key when opening Firefox.
    Click the 'Start in Safe Mode' button. NOT the 'Reset' button.
    [[Troubleshoot Firefox issues using Safe Mode]]
    If the problem does not occur in Safe Mode then come out of safe mode and then continue following the instructions to identify the setting or add-on that is causing the problem. I would start by disabling hardware acceleration to see if that is the cause.
    If the problem does occur in Safe Mode then I suggest doing a Firefox Reset. This will return Firefox to its default settings. You personal information will be saved (bookmarks etc) but you will need to reinstall your add-ons.
    [[Reset Firefox – easily fix most problems]]
    I hope this helps. Let me know if not.

  • Blocking the printing and output of documents that are awaiting approval?

    Hi,
    Is any functionality available that would prevent purchase orders from being 'print previewed' or outputted whilst the document status is either awaiting approval or release rejected?
    thanks. Pooja.

    hiya,
    This BADI seems to be specific to Carts. We want to supress this at PO printing. Please, can BBP_CHANGE_SF_SC be used on PO's?
    warmest regards, Pooja.

  • Hi, I don´t know how to make the screen of my iPad 3 to rotate. I blocked the rotation and I don´t know how to make it rotate again.

    How do I unlock the rotation of the screen of my ipad? I want my screen to rotate.
    Thanks.
    Monica.

    1. Make sure the Side Switch is set to Lock Rotation: Settings>General
    http://i1224.photobucket.com/albums/ee374/Diavonex/59baf839.jpg
    2. Now check the Side Switch to make sure it's in the unlock position
    http://i1224.photobucket.com/albums/ee374/Diavonex/00bf6eae.jpg

Maybe you are looking for

  • How long should the Mac Book pro hold its charge???

    How long should the Mac Book pro hold a  battery charge??

  • Is it possible to have one central user defined exchange rate for a project

    When i create deliverables for a project. It asks for an exchange rate type. On entering user i am prompted to enter an exchange rate. Is it possible to use the exchange rate setup at the workplan level for all deliverables rather than entering the r

  • Differnence between two codes of event handling

    hello i am learning event handling in swing but confused between two codes :- the first code of event handling is given in book "head first java " and working fine import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Swingde

  • RMI class not compilimg

    Hello , i am trying to run a simple RMI example , however my implementation class for the interface is not compiling . eg I have an interface Calculator i compiled the java file , so i have a class Calculator now i made a server side implementation f

  • 3.1.1.2 for Windows NT

    My firewall do not allow me to download in ftp protocol. Could you please put the zip file on a http server ? Thank you in advance and kind regards. null