Disconnecting a taking thread
Asaf Lahav <[email protected]> Thu, 20 Nov 2008 11:07:20 +0200
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format. ------=_NextPart_000_0003_01C94B00.29EFBBB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, What is the cleanest/recommended way to stop a thread which is taking entries from a javaspace? What I currently do is abort the thread. The problem is that sometime after aborting, other waiting threads stop taking entries as well. Thanks in advance -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected] ------=_NextPart_000_0003_01C94B00.29EFBBB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:right; direction:rtl; unicode-bidi:embed; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"Balloon Text Char"; margin:0cm; margin-bottom:.0001pt; text-align:right; direction:rtl; unicode-bidi:embed; font-size:8.0pt; font-family:"Tahoma","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.BalloonTextChar {mso-style-name:"Balloon Text Char"; mso-style-priority:99; mso-style-link:"Balloon Text"; font-family:"Tahoma","sans-serif";} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal = style=3D'text-align:left;direction:ltr;unicode-bidi:embed'>Hi all,<o:p></o:p></p> <p class=3DMsoNormal = style=3D'text-align:left;direction:ltr;unicode-bidi:embed'>What is the cleanest/recommended way to stop a thread which is taking entries = from a javaspace?<o:p></o:p></p> <p class=3DMsoNormal = style=3D'text-align:left;direction:ltr;unicode-bidi:embed'>What I currently do is abort the thread. The problem is that sometime after = aborting, other waiting threads stop taking entries as well.<o:p></o:p></p> <p class=3DMsoNormal = style=3D'text-align:left;direction:ltr;unicode-bidi:embed'><o:p> </o= :p></p> <p class=3DMsoNormal = style=3D'text-align:left;direction:ltr;unicode-bidi:embed'>Thanks in advance<o:p></o:p></p> <p class=3DMsoNormal dir=3DRTL><span = dir=3DLTR><o:p> </o:p></span></p> <p class=3DMsoNormal dir=3DRTL><span = dir=3DLTR><o:p> </o:p></span></p> </div> </body> </html> -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected] ------=_NextPart_000_0003_01C94B00.29EFBBB0--