hi,
I have a possible number of threads which may access a non
multi-threaded word object in a class, in this case the word object
will often complain. I am think ing of making this class usees a word
object a singleton, so only one instance of word is instanciated
during the life time of this program. And when other threads tries an
instanciate this class again, I would queue these threads, within the
same class.
I have been looking at a few classes such as threadpool or the
iasyncresults interface to do this. threadpool seem to require you to
specify a hardcoded time limit before it moves to the next thread in
queue. Does any else have any better way of doing this?
thx
-Philip
I have a possible number of threads which may access a non
multi-threaded word object in a class, in this case the word object
will often complain. I am think ing of making this class usees a word
object a singleton, so only one instance of word is instanciated
during the life time of this program. And when other threads tries an
instanciate this class again, I would queue these threads, within the
same class.
I have been looking at a few classes such as threadpool or the
iasyncresults interface to do this. threadpool seem to require you to
specify a hardcoded time limit before it moves to the next thread in
queue. Does any else have any better way of doing this?
thx
-Philip