11-10-2008
How to interrupts work queue with signals
Hi masters,
I am doing a project to regulate network bandwidth. I am using workqueue to implement packets management (I uses kernel threads inside each of these work queue) , netfilter hooks to implement packet catcher . All my modules individually works fine . But when I run my workqueues, hence threads , my hook fn and my ioctl function doesnt work . My threads will continuesly work untill I remove the module. how can i change the code so that my hook function should exicute automatically when a packet is received and my ioctl when user application prgm did run. I am looking for some hint which I can work upon. Thanking everybody..
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
I'm a freshman here and I have a simple question.
Does unix use interrupts which is like Dos? Are they the same?
Thx.:cool: (6 Replies)
Discussion started by: Frank_M
6 Replies
2. UNIX for Dummies Questions & Answers
hey i have been facing a problem,can you tell me if we can catch ctrl d in unix i have tried and sucessfully catched and disabled ctrl-c and ctrl -z but am not sure if we can do the same for CTRL-D, so got any clue mail on he forum or ...i mean c programming in Unix thats what i am working on (1 Reply)
Discussion started by: toughguy2handle
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
My machine is a Unixware 7.1.3 is a files server, and I had never problem with that machine, but since two days, the machine presents slows problems, i think that the problem is te device interrupts, I had checked all and I dont found it any problem.
Any idea?
Thanks, (sorry my... (2 Replies)
Discussion started by: By_Jam
2 Replies
4. UNIX for Dummies Questions & Answers
Well, I don't know where exactly to ask this doubt so I'm asking in the newbie section. I was reading about traps and interrupts when I thought of traps as something that cease the control of the OS from the user and interrupts that cease the control yet provide support for multitasking. Am I right... (3 Replies)
Discussion started by: Legend986
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I am new here ,i want to know about interrupts in detail.What r
Interrupts .how they r handeled.
Thanx in adavnce. (1 Reply)
Discussion started by: vishwasrao
1 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody,
this is the situation. there is a programm XYZ which opens a message queue with the key 47110815 and waits for a SIGUSR1. After receiving this signal it sends a message with type 100 and a number (as ASCII) in the message-body.
I have to write a prog which frist sends the... (1 Reply)
Discussion started by: daredevil82m
1 Replies
7. Programming
Hi. I have a program whose job it is to manage 15 child processes. Sometimes these children die (sometimes deliberately other times with a SEGV). This causes a SIGCHLD to be sent to my program which uses waitpid() in the signal handler to gather information and, in most cases, restart the child.... (3 Replies)
Discussion started by: jrichemont
3 Replies
8. Infrastructure Monitoring
Hi Gurus,
I have a situation runing my ETL tools on the below server. The throughput while processing data is coming very low. When i tried to analyse the CPU stats i got colleceted the mpstat.
Server Physical Host Name *********com
IP**.***.**
OS Type Linux
OS Classlinux red hat... (3 Replies)
Discussion started by: r_t_1601
3 Replies
9. UNIX for Dummies Questions & Answers
Hi folks!
I have been reading Vahalia's Unix Internals book, which states the following in the chapter dedicated to signals:
Given that, my understanding is that processes running in user mode don't become aware of signals until they switch to kernel mode, where the issig() function is called... (3 Replies)
Discussion started by: Tru69
3 Replies
LEARN ABOUT SUNOS
create-threadpool
asadmin-create-threadpool(1AS) User Commands asadmin-create-threadpool(1AS)
NAME
asadmin-create-threadpool, create-threadpool - adds a threadpool
SYNOPSIS
create-threadpool --user admin_user [--password admin_password][--host localhost] [--port 4848][--secure|-s] [--passwordfile filename]
[--terse=false] [--echo=false] [--interactive=true] [--maxthreadpoolsize max_thread_pool_size] [--minthreadpoolsize min_thread_pool_size]
[--idletimeout idle_thread_timeout_in_seconds] [--workqueues number_work_queues]
threadpool_id
Creates a thread-pool with the specified name. You can specify maximum and minimum number of threads in the pool, the number of work
queues, and the idle timeout of a thread. The created thread pool can be used for servicing IIOP requests and for resource adapters to ser-
vice work management requests. Please note that a created thread pool can be used in multiple resource adapters. This command is supported
in remote mode only.
OPTIONS
--user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--maxthreadpoolsize maximum number of threads in the threadpool servicing requests in this queue. This is the upper bound on the number
of threads that exist in the threadpool.
--minthreadpoolsize minimum number of threads in the threadpool servicing requests in this queue. These are created up front when the
threadpool is instantiated.
--idletimeout idle threads are removed from the pool after this time.
--workqueues identifies the total number of work queues serviced by this threadpool.
OPERANDS
threadpool_id an ID for the work queue; for example, thread-pool-1, thread-pool-2, etc.
Example 1: Using create-threadpool
asadmin> create-threadpool --user admin1 --password adminadmin1
--maxthreadpoolsize 100 --minthreadpoolsize 20 --idletimeout 2 --workqueues 100
threadpool-1
Command create-threadpool executed successfully
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-threadpool(1AS), asadmin-list-threadpools(1AS)
J2EE 1.4 SDK March 2004 asadmin-create-threadpool(1AS)