Question about how to preserve a value get by a thread

I use ThreadPool to contain some ThreadPoolJobs.

I start one thread using ThreadPoolJob to get a String ABC, and I will start another thread which will use the String ABC that I get just now,

I want to ask where should I put the String ABC that I can access it in another thread class which inherites from ThreadPoolJob?

And how to share or send values and messages between threads using ThreadPoolJob?

Doesn’t matter whether you use a thread-pool or normal threads, the principles of multi-threading programming are always the same - and it’s a topic that’s far too big and general to explain here… Start with CriticalSection and WaitableEvent.

Thanks.

I know how to use CriticalSection and I am learning WaitableEvent.