logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Is NDC multithread safe?
Date Thu, 21 Apr 2005 04:25:41 GMT
See http://logging.apache.org/log4cxx/manual/Introduction.html#NDC

Nested Diagnostic Context is per-thread.  Since the test function was 
running on different threads, they should not see anything pushed into 
the NDC of the main thread.  Sounds like it is doing what it supposed 
to be doing.

On Apr 20, 2005, at 11:02 PM, prakash kadam wrote:

> Hi all,
>    I use delayed loop, where i running 'test' function continuously.  
> I push "main" from 'main' function in to NDC and then i created 10 
> thread which runing test function. and In 'test' function puses "test" 
> in NDC , so when i want ndc output, it only shows 'test' which is 
> pushed by thread and not showing "main:test" as output. I am not 
> understanding functionality, can somebody explain me little detail.
> Thanks
> prakash
> Prakash F. Kadam
> ISSC, Pune University
> Walla! Mail - get your free 1G mail today

View raw message