Novell is now a part of Micro Focus

I'm sure this is rather easy to accomplish,...

Articles and Tips: qna

01 Nov 2002


Q.

I'm sure this is rather easy to accomplish, but I'm just going ask you anyway. In an (CLIB) NLM that has two threads, how can I ensure each thread writes to its own screen with no interference? Should I use critical sections around the output sections of the code? Thanks for any ideas!

A.

Use ThreadGroups instead, and at the start of your ThreadGroup's code call the appropriate functions to create the screens and they will be defaults automatically. You won't need to worry about critical sections or anything like this.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates