|
-
Jul 21st, 2010, 06:02 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Server listening-thread question.
Q: Can a thread survive indefinately, as long as it dosen't generate any run-time errors?
The reason for asking is this:
I just finished making a rather huge server/client application.
The server listens for clients in a seperate thread, and I have tried making both primay and secondary threads robust so as to never fail regardless of what happens. And actually the server has been running for a total of 4 days on another computer and has survived anything I've thrown at it. I was tempted to add security in the primary thread using timered checks on the secondary thread (listening thread) so as to verify it's running state continuously, but is it worth the bother in your experience?
Thank you in advance.
Thomas
-
Jul 21st, 2010, 07:32 AM
#2
Re: Server listening-thread question.
Depending on what the computer is used for and how it is used, it may require a re-boot for stability (as Microsoft calls it) so as long as we are using Windows, indefinitely is finite.
As for what you are calling security it is up to you.
Are you monitoring an auction for Star Wars cards? Then the answer is no.
Are you monitoring someone's life support? They would say yes!
-
Jul 21st, 2010, 07:51 AM
#3
Thread Starter
Fanatic Member
Re: Server listening-thread question.
 Originally Posted by MarMan
Depending on what the computer is used for and how it is used, it may require a re-boot for stability (as Microsoft calls it) so as long as we are using Windows, indefinitely is finite.
As for what you are calling security it is up to you.
Are you monitoring an auction for Star Wars cards? Then the answer is no.
Are you monitoring someone's life support? They would say yes!
Thank you for that input. I think I'll skip the thread checking then, since I'm closer to the Star Wars example then the life suffort one (actually it is a membership login server for 18 clubs of youngsters, but each club is only open 2-4 times each week in the evenings, so I'll just ask the management to reboot on occasion in the early hours of the day - maybe once every week or so).
Regards and thank you again
Thomas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|