You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Curt Arnold <ca...@apache.org> on 2005/04/21 06:25:41 UTC
Re: Is NDC multithread safe?
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