Results 1 to 3 of 3

Thread: [RESOLVED] Server listening-thread question.

  1. #1

    Thread Starter
    Fanatic Member ThomasJohnsen's Avatar
    Join Date
    Jul 2010
    Location
    Denmark
    Posts
    528

    Resolved [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

  2. #2
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    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!

  3. #3

    Thread Starter
    Fanatic Member ThomasJohnsen's Avatar
    Join Date
    Jul 2010
    Location
    Denmark
    Posts
    528

    Re: Server listening-thread question.

    Quote Originally Posted by MarMan View Post
    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
  •  



Click Here to Expand Forum to Full Width