9 More Discussions You Might Find Interesting
1. Red Hat
I am currently have Centos 5.5 which consumes more CPU waiting for Kcrypt process. Later came to know that kcrypt is single threaded and hence consumes one CPU, results in performance degradation.
Does any one really knows/practically experimented multithread of Kcryptd process with any of... (1 Reply)
Discussion started by: ragavendraganes
1 Replies
2. UNIX for Dummies Questions & Answers
I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A.
Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server).
We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies
3. Shell Programming and Scripting
I need to connect to a ftp server-1 from linux server-2 and copy/get a file from server-1 which follows a name pattern of FILENAME* (located on the root directory) and copy on a directory on server-2. Later, I have to use this file for ETL loading... For this I tried using as below
/usr/bin/ftp... (8 Replies)
Discussion started by: dhruuv369
8 Replies
4. Shell Programming and Scripting
Dear Friends,
Sorry for this basic request. But I just started learning Ksh recently and still I am a newbie in this field.
Q: I have files on one server and the date format is 20121001000009_224625.in which has year (yyyy) month (mm) and date (dd). I have these files on server A. The task... (8 Replies)
Discussion started by: BrownBob
8 Replies
5. Shell Programming and Scripting
I Have an script like
./bang 1
./bang 2
./bang 3
./bang 4
./bang 5
./bang 6
./bang 7
./bang 8
./bang 9
./bang 10
./bang 11
./bang 12
and i wanna execute him in groups of 3 , i mean he execute bang 1 , bang 2 and bang 3 after it finish the next 3 commands it will be executed and... (5 Replies)
Discussion started by: Gyeah11
5 Replies
6. Solaris
Dear Friends,
We have one T5240 server with 128vcpus in our lab.Performance of the server is very poor. Application uses only 2% of processor..I heard that single thread application performs slowly in coolthread.How can we find whether the application running on multithread or single thread? If... (7 Replies)
Discussion started by: nicktrix
7 Replies
7. Programming
Hello,
I'm coding an application using pthreads.At some point the threads will read some read-only variables.Is it safe NOT to use mutexes, in order to make the program lighter since mutex operations are resource-demanding...
Thanks (1 Reply)
Discussion started by: jonas.gabriel
1 Replies
8. Programming
Hi
i m codding a programm,it can download any packet from ftp,I use libcurl library. But i want to use threads for downloading.(Multithreading).i cant get ftp file size from ftp and divide packet small pieces,like threads use.
Please share your experince with me ,thanks. (0 Replies)
Discussion started by: canerbulut
0 Replies
9. Programming
I wrote a server which creates a thread for every client connection. I have to include timeout function that will kill the server thread if the client doesn't respond for specific time. That too using signal(SIGALRM). For this i am using alarm() function.
When the server thread detects signal it... (1 Reply)
Discussion started by: Nads
1 Replies
Net::Server::Fork(3) User Contributed Perl Documentation Net::Server::Fork(3)
NAME
Net::Server::Fork - Net::Server personality
SYNOPSIS
use base qw(Net::Server::Fork);
sub process_request {
#...code...
}
__PACKAGE__->run();
DESCRIPTION
Please read the pod on Net::Server first. This module is a personality, or extension, or sub class, of the Net::Server module.
This personality binds to one or more ports and then waits for a client connection. When a connection is received, the server forks a
child. The child handles the request and then closes.
With the exception of parent/child signaling, this module will work (with basic functionality) on Win32 systems.
ARGUMENTS
check_for_dead
Number of seconds to wait before looking for dead children. This only takes place if the maximum number of child processes
(max_servers) has been reached. Default is 60 seconds.
max_servers
The maximum number of children to fork. The server will not accept connections until there are free children. Default is 256 children.
max_dequeue
The maximum number of dequeue processes to start. If a value of zero or undef is given, no dequeue processes will be started. The
number of running dequeue processes will be checked by the check_for_dead variable.
check_for_dequeue
Seconds to wait before forking off a dequeue process. It is intended to use the dequeue process to take care of items such as mail
queues. If a value of undef is given, no dequeue processes will be started.
CONFIGURATION FILE
See Net::Server.
PROCESS FLOW
Process flow follows Net::Server until the post_accept phase. At this point a child is forked. The parent is immediately able to wait for
another request. The child handles the request and then exits.
HOOKS
The Fork server has the following hooks in addition to the hooks provided by the Net::Server base class. See Net::Server
"$self->child_init_hook()"
This hook is called just after the fork and after signals have been cleaned up.
"$self->pre_accept_hook()"
This hook occurs just before the accept is called.
"$self->pre_fork_hook()"
This hook occurs just after accept but before the fork.
"$self->post_accept_hook()"
This hook occurs in the child after the accept and fork.
"$self->run_dequeue()"
This hook only gets called in conjuction with the check_for_dequeue setting.
HOT DEPLOY
Since version 2.000, the Fork server has accepted the TTIN and TTOU signals. When a TTIN is received, the max_servers is increased by 1.
If a TTOU signal is received the max_servers is decreased by 1. This allows for adjusting the number of handling processes without having
to restart the server.
AUTHOR
Paul Seamons <paul@seamons.com>
Rob Brown <bbb@cpan.org>
SEE ALSO
Please see also Net::Server::INET, Net::Server::PreFork, Net::Server::MultiType, Net::Server::SIG Net::Server::Single
perl v5.16.2 2012-06-19 Net::Server::Fork(3)