◘◘◘VisualXtremes◘◘◘

<a href="http://www.forums100.com/in.php?id=1665"><img src="http://www.forums100.com/button.php?id=1665" border="0" /></a><br><font face="Tahoma"><span style="font-size: 6pt; font-weight: 700"><a href="http://www.forums100.com" style="text-decoration: none">Top 100 Forums</a></span></font><!-- BEGIN TOP SITE LIST PLANET VOTING CODE -->
<center>
<a href="http://forumz.top-site-list.com/vote447.html">
<IMG SRC="http://forumz.top-site-list.com/images/voteimage/forumz-2.jpg" border=0></a><br><font size=1><a href="http://www.top-site-list.com/">Free TopSite</a></font>
</center>
<!-- END TOP SITE LIST PLANET VOTING CODE -->
VOTE NOW TO HELP US TO GROW!

Join the forum, it's quick and easy

◘◘◘VisualXtremes◘◘◘

<a href="http://www.forums100.com/in.php?id=1665"><img src="http://www.forums100.com/button.php?id=1665" border="0" /></a><br><font face="Tahoma"><span style="font-size: 6pt; font-weight: 700"><a href="http://www.forums100.com" style="text-decoration: none">Top 100 Forums</a></span></font><!-- BEGIN TOP SITE LIST PLANET VOTING CODE -->
<center>
<a href="http://forumz.top-site-list.com/vote447.html">
<IMG SRC="http://forumz.top-site-list.com/images/voteimage/forumz-2.jpg" border=0></a><br><font size=1><a href="http://www.top-site-list.com/">Free TopSite</a></font>
</center>
<!-- END TOP SITE LIST PLANET VOTING CODE -->
VOTE NOW TO HELP US TO GROW!

◘◘◘VisualXtremes◘◘◘

Would you like to react to this message? Create an account in a few clicks or log in to continue.

+5
Tishawn45
aaric61
alpyssa12
Stephany297
darrween483
9 posters

    Thread Blocking ?

    avatar
    darrween483
    Member
    Member


    Posts : 40
    Tokens : 472
    Reputation : 0
    Join date : 2010-08-06

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  darrween483 Tue Sep 07, 2010 6:45 pm

    However, sometimes I need to close all the threads and my question is, how can I do this, since some of them are blocked? I guess I probably can close the sockets which will generate an exception, but is there any nicer ways of doing this(waking them up when they are blocked)?

    -------------------------------------------
    Online Marketing
    avatar
    Stephany297
    Member
    Member


    Posts : 28
    Tokens : 364
    Reputation : 0
    Join date : 2010-09-08

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  Stephany297 Thu Sep 16, 2010 6:33 pm

    In computer science, a thread of execution is the smallest unit of processing that can be scheduled by an operating system. It generally results from a fork of a computer program into two or more concurrently running tasks. The implementation of threads and processes differs from one operating system to another, but in most cases, a thread is contained inside a process. Multiple threads can exist within the same process and share resources such as memory, while different processes do not share these resources. In particular, the threads of a process share the latter's instructions.
    _______________________________

    Malaysia Flights
    Kuala Lumpur Accommodation
    avatar
    alpyssa12
    Member
    Member


    Posts : 32
    Tokens : 290
    Reputation : 0
    Join date : 2010-10-19

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  alpyssa12 Tue Nov 02, 2010 6:23 pm

    Thread Blocking is undesirable for many reasons. An obvious reason is that while the thread is blocked, it cannot accomplish anything. If the blocked thread is performing a high-priority or real-time task, it is highly undesirable to halt its progress.

    ____________________________________
    HDMI Cable
    HDMI Cables
    avatar
    aaric61
    Member
    Member


    Posts : 61
    Tokens : 803
    Reputation : 0
    Join date : 2010-12-10

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  aaric61 Mon Dec 20, 2010 11:27 am

    In computer science, a thread of execution is the smallest unit of processing that can be scheduled by an operating system. It generally results from a fork of a computer program into two or more concurrently running tasks. The implementation of threads and processes differs from one operating system to another, but in most cases, a thread is contained inside a process.
    _________________________________
    SEO Reseller
    Christian SEO
    avatar
    Tishawn45
    Member
    Member


    Posts : 71
    Tokens : 453
    Reputation : 0
    Join date : 2010-12-30

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  Tishawn45 Mon Jan 17, 2011 2:21 pm

    A daemon thread will allow the JVM to shut down, but the thread won't have a chance to clean up after itself, which is the goal here.

    On the other hand, you can never be 100% assured that the JVM (or the entire machine) won't crash, in which case the threads won't have a chance to clean up after themselves anyway, so you need to be prepared for that possibility anyway.

    That said, another solution is to call Thread.interrupt() to interrupt the blocking thread, which can catch the InterruptedException or InterruptedIOException and clean up.




    __________________
    SEO UK
    UK SEO



    avatar
    mmicky30
    Member
    Member


    Posts : 65
    Tokens : 695
    Reputation : 0
    Join date : 2011-01-29

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  mmicky30 Wed Feb 09, 2011 10:37 am

    However, sometimes I need to close all the threads and my question is, how can I do this, since some of them are blocked? I guess I probably can close the sockets which will generate an exception, but is there any nicer ways of doing this(waking them up when they are blocked)?
    __________________________________
    Roller Blinds
    Blackout Roller Blinds
    avatar
    maaza5417
    Leacher
    Leacher


    Posts : 21
    Tokens : 175
    Reputation : 0
    Join date : 2011-02-15

    Thread Blocking ? Empty Thread Blocking

    Post  maaza5417 Mon Feb 21, 2011 4:21 pm

    A thread that is prevented from executing is said to be blocked.
    A thread may be blocked for the following reasons.
    *
    1) It has been put to sleep for a set amount of time

    2) It is suspended with a call to suspend() and will be blocked until a resume() message
    *
    3) The thread is suspended by call to wait(), and will become runnable on a notify or notify all message.
    _________________________________________
    SEO Dubai
    SEO Company Dubai

    avatar
    williams9394
    Leacher
    Leacher


    Posts : 10
    Tokens : 94
    Reputation : 0
    Join date : 2011-04-13

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  williams9394 Wed Apr 27, 2011 3:36 pm

    A block and tackle can reduce the amount of energy (force) required to lift an object. While the device is quite simple, the rope must be properly threaded through the device in order for it to work properly. The device is very simple, as is the proper threading of the rope.

    -----------------------------------------------------------------
    Dublin Property to Let
    avatar
    dion6959
    Member
    Member


    Posts : 73
    Tokens : 510
    Reputation : 0
    Join date : 2010-06-05

    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  dion6959 Mon May 28, 2012 6:50 pm

    more precisely blocking thread is waiting for a messages on a external messaging system queue, and the system is shutting down.
    __________
    free online storage

    Sponsored content


    Thread Blocking ? Empty Re: Thread Blocking ?

    Post  Sponsored content


      Current date/time is Mon May 20, 2024 11:15 pm