Anonymous Function Names
-
I am building a multi-threaded application with numerous amount of threads ---- The thing is for each thread it has to be a random name and I do not know howto to create and start random named threads ---- help is greatly appreciated Thanks
Threads = headache Random threads = insane! Theortically you could create a hashmap or similar, create a random string value for the key and an instance of the thread for the value. That way you would have random names associated with the threads, plus you could still enumerate through the collection. Plus the collection could grow and shrink as necessary. But please... dont ;-) /********************************** Paul Evans, Dorset, UK. Personal Homepage "EnjoySoftware" @ http://www.enjoysoftware.co.uk/ **********************************/