On Sat, 26 Apr 2008 08:53:29 -0700, Coaster <Co*****@Coaste r.netwrote:
[...] So my main question was if I created
a backgroundworke r to execute the threadmanager (either thru subclassing
or
not) will it be able to create other backgroundworke rs to execute the
tasks?
I rememeber something from my c++ days about worker threads couldn't
create
other worker threads or gui threads, I forgoet but I was looking to see
if
such a limitation exists in this environment.
No such limitation existed in C++, though depending on what mechanism you
used to create threads, you may have needed to initialize the CRT for a
specific thread before creating a new thread from that thread.
In any case, nothing like that is an issue in .NET. You can create new
threads from any other thread. And you can create new BackgroundWorke r
instances from threads executing an existing BackgroundWorke r instance.
Now, that's not to say that whatever you're trying to do is necessarily
the best way to do it. Your problem description is rather vague, and it
seems to state a design requirement that wouldn't normally come up.
But whatever the design requirement, creating a new threading objects from
existing threading objects isn't a problem in .NET.
Pete