Page 1 of 1

Re: [Nagios-devel] Less is More (Threading)

Posted: Wed Aug 19, 2009 6:15 pm
by Guest


On 8/19/2009 3:13 PM, Steven D. Morrey wrote:
> So I've implemented multi-threading in the main event loop to force hig=
h priority events to no longer block the main thread.
> It turned out to be brain dead simple to implement.
> That has me a bit worried actually.
>
> After going through the source line by line, I see no place where event=
_list_low and event_list_high could stomp on eachother, ergo no need for =
mutexes, semaphores etc, anywhere that I was able to find.
>
> The fix I followed was simply to cut the event list high code out and p=
aste it into it's own function then perform a pthread_create right before=
we enter the main event loop.
> So now we have 2 threads where once there was only one.
> This appears to be working well, and my latencies are dropping quickly.
> =20

If possible, publish your patch, I=B4d like very much to test it.

Tks.
> If it continues to drop and tends to stay that way I'll get a patch up,=
but in the meantime, is there any place those 2 threads could take eacho=
thers cookies so to speak?
>
> Thanks in advance!
>
> Sincerely,
> Steve
>
>
> NOTICE: This email message is for the sole use of the intended recipi=
ent(s) and may contain confidential and privileged information. Any unaut=
horized review, use, disclosure or distribution is prohibited. If you are=
not the intended recipient, please contact the sender by reply email and=
destroy all copies of the original message.
>
>
>
> -----------------------------------------------------------------------=
-------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30=
-Day
> trial. Simplify your report design, integration and deployment - and fo=
cus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
> =20





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]