[698] in Pthreads mailing list archive
Problems with handling signals in pthreads.
daemon@ATHENA.MIT.EDU (Sushmala Yarramreddy)
Wed Aug 6 13:38:55 1997
Date: Wed, 6 Aug 1997 13:31:47 -0400 (EDT)
From: Sushmala Yarramreddy <ysr@cise.ufl.edu>
To: pthreads@MIT.EDU
Cc: Sushmala Yarramreddy <ysr@cise.ufl.edu>
Hi,
I am working on a real time project which involves development of
detectors for a Network Intrusion Detection System.
I am using the pthreads-1_60_beta6 package on FreeBSD.
I have a number of detectors, each of them running as a separate
pthread at any point of time. Whenever I receive a packet, I send a
signal to the appropriate pthread to take some action.
I am facing the following problems when I'm trying to implement
them. It would be great if I could get some help on this :
1. The packets come in at a very fast rate (300 packets per sec) and a
number of signals to individual pthreads are lost if I dont give an
appropriate sleep time. I cannot afford to give this sleep time when
I'm developing a real time system. Is there any other way I can
overcome this?
2. The time taken to send a signal to each pthread is very
long (1100usecs) if a real time system has to be developed.
I would like to know if it is possible to use this approach of sending
signals to individual threads to develop a real time intrusion detection system.
Thanks,
sushma.