TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Administrator
Tech Writer
2.2k
1.5m
Threads and sockets
Apr 14 2003 8:21 AM
Hi all... I have a question when using sockets in threads. I have a class "A" that creates another "B" in a thread. B then creates a server side socket. B is global in A. If the thread in A exits I get an error saying that I/O request failed because a thread exited or an application request it. If I include a sleep in the thread so it does not exit, it works fine. Can anyone explain me this behaviour of threads and sockets? Thanks. Regards, Sandra
Reply
Answers (
1
)
Kill / ending threads