Sending data to a remote machine from a multi-process/multi-thread app
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Sending data to a remote machine from a multi-process/multi-thread app

  1. #1
    Join Date
    Dec 2005
    Posts
    58

    Sending data to a remote machine from a multi-process/multi-thread app

    What is the best way to send data from an application that runs as multiple processes and multiple threads to another machine?

    Take the example of apache web server in worker mode. The server runs as a number of processes with a number of threads within each process. The individual threads service client request.

    Assuming that each of the web server threads has to dump some data to a remote machine, what could be the best way to do it? The frequency that which data has to be dumped would clearly depend on the load on the web server. The more the load, the more the number of threads.

    Thanks
    Pankaj

  2. #2
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    47

    Re: Sending data to a remote machine from a multi-process/multi-thread app

    Quote Originally Posted by pankaj.talk View Post
    What is the best way to send data from an application that runs as multiple processes and multiple threads to another machine?

    Take the example of apache web server in worker mode. The server runs as a number of processes with a number of threads within each process. The individual threads service client request.

    Assuming that each of the web server threads has to dump some data to a remote machine, what could be the best way to do it? The frequency that which data has to be dumped would clearly depend on the load on the web server. The more the load, the more the number of threads.

    Thanks
    Pankaj
    I guess you have to assess your business requirement again. It totally depends on what important and what is not really important for you. The "best way" may mean different thing if the important factors are changed.

    Nevertheless... My suggestion is to use available software in the market as it will help you to reduce time and cost. One of the example is if you use UNIX operating systems, you can mount NFS and write the data to files. And it will automatically get the data over to the remote machine.
    Xander Tan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center