in reply to Multi threaded server [fork]

I'd like to know how did you check that there is that interference. Perhaps it was just output buffering or some other coincidence (to have non buffered output you need to add $| = 1 to your scripts). I think it is not possible for Unix processes to directly interfere one with another (not using some IPC technique). Beside that you are not using threads - you might confuse people when you talk about interfering threads and mean interfering child processes.

Replies are listed 'Best First'.
Re: Re: Multi threaded server [fork]
by Deda (Novice) on Aug 06, 2003 at 10:24 UTC
    oops, by threads I ment chind processes. I tested it using multiple "telnet <host> <server port>"s. I used one telnet for a couple of 'system's and when I started another telnet and typed a command it did not send me reply until i typed a command in the 1st telnet. Then the 1st telnet command "waited" until i typed a command in the 2nd telnet. Also: when I typed a command, that indicates to the server it should close the connection it closed it but not until I typed a command in the other telnet.