No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Let say we have N number and N is odd. Among the N numbers, two of them equal to each other except one. For example, let's say we have 7 numbers, which could be 5, 3, 4, 1, 3, 5, 1. Only 4 is distinct, other number always has anther … |
|
I have a algorithm problem to ask: There are N persons, and each of them knows one distinct gossip message. The two of them just make a phone call, so they could share messages they know. Then at least how many phone calls do they need make , so that … |
|
This code is just handling the SIGCHLD signal, but as you can see, the parent process should ignore this SIGCHLD signal according to the signal function. But in fact, the parent process will omit the signal function, and handling the child process using "wait". I wonder why the parent do … |
|
Re:
can anyone tell me what do I have to do to protect my server? In windows, we install anti virus and firewall immediately after operating system is installed. What about linux server? Do we use firewall? And how do i close all the ports? and leave some open for programs? … |