Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21697
| X-Received | by 10.224.110.68 with SMTP id m4mr2494591qap.2.1359101863774; Fri, 25 Jan 2013 00:17:43 -0800 (PST) |
|---|---|
| X-Received | by 10.49.12.238 with SMTP id b14mr1049956qec.18.1359101863668; Fri, 25 Jan 2013 00:17:43 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no4897514qai.0!news-out.google.com!k2ni2734qap.0!nntp.google.com!p13no4897510qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Fri, 25 Jan 2013 00:17:43 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=153.19.35.242; posting-account=FYIyEAoAAAANuhVTqhCgp1nBx7dpZ-nl |
| NNTP-Posting-Host | 153.19.35.242 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <53a99ae7-6ff8-42d6-87f6-822a0310a475@googlegroups.com> (permalink) |
| Subject | Detection of socket connecting process, two thread problem |
| From | artik <olsztyn.arti@gmail.com> |
| Injection-Date | Fri, 25 Jan 2013 08:17:43 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.java.programmer:21697 |
Show key headers only | View raw
Hi, I use one socket and two threads with it: one for reading and one for writing to it. My problem is in moment when error occurs and two thread want to do connection again on the same socket by closing the secont at start. Result of this is that while one one thread (the firtst of catching error) wants to start reconnecting the second one close socket to perform it for reconnecting. Classic dead lock. Therefore I ask about possibility to read state of socket exactly state of try to connecting? Regards, Artik
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Detection of socket connecting process, two thread problem artik <olsztyn.arti@gmail.com> - 2013-01-25 00:17 -0800
Re: Detection of socket connecting process, two thread problem Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2013-01-25 00:40 -0800
Re: Detection of socket connecting process, two thread problem artik <olsztyn.arti@gmail.com> - 2013-01-25 02:33 -0800
Re: Detection of socket connecting process, two thread problem Knute Johnson <nospam@knutejohnson.com> - 2013-01-25 10:11 -0800
csiph-web