Windows Service and multithreading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adynan

    Windows Service and multithreading

    Hello Friiends

    I am looking for ways to create a multithreaded Windows service in c#
    which is actually a IM Bot application. Since multiple user can access
    at same time, I want to create seprate thread when user open a chat
    Window[for instance for MSN IM]. I coudn't find any such helpful tip to
    acomplish the task. Kindly guide me.


    Thanks

  • Adynan

    #2
    Re: Windows Service and multithreading

    Yes one most iMportant question, Is threading necessary to involve in a
    Chat system like a IM Bot?

    Thanks


    Adynan wrote:
    Hello Friiends
    >
    I am looking for ways to create a multithreaded Windows service in c#
    which is actually a IM Bot application. Since multiple user can access
    at same time, I want to create seprate thread when user open a chat
    Window[for instance for MSN IM]. I coudn't find any such helpful tip to
    acomplish the task. Kindly guide me.
    >
    >
    Thanks

    Comment

    • nick_nw

      #3
      Re: Windows Service and multithreading


      Adynan wrote:
      Yes one most iMportant question, Is threading necessary to involve in a
      Chat system like a IM Bot?
      >
      Thanks
      >
      >
      Adynan wrote:
      Hello Friiends

      I am looking for ways to create a multithreaded Windows service in c#
      which is actually a IM Bot application. Since multiple user can access
      at same time, I want to create seprate thread when user open a chat
      Window[for instance for MSN IM]. I coudn't find any such helpful tip to
      acomplish the task. Kindly guide me.


      Thanks
      I've not got any experience of IM Bots, but threading is something I've
      had to do a lot of. Be warned that threading can be tricky (especially
      in terms of sunchronisation and when you need to close threads down).

      It's rare that threading is absolutely neccessary, there can often be
      other alternatives.

      If you do decide to go down the threading route it might be worth while
      doing some small sample code, maybe working through the examples on Jon
      Skeet's introduction to threading article
      (http://www.yoda.arachsys.com/csharp/threads/).

      Best,

      Nick


      Comment

      Working...