On Tue, Sep 17, 2013 at 9:28 AM, chenxu zhao <[email protected]> wrote: > I use child_process fork 4 thread. > in the parent thread . I send the socket to child. > when the client write data to the server or close the socket,not only the > child process cpu run,but also the parent process use the cpu. > > I want to know what the parent process do, and how can reduce the cpu that > the parent use.
What does your code look like? Do you close/destroy the socket in the parent process once the child has received it? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
