c# - Using Thread with Parameter as object -


how start thread object parameter in c#.

i wanted pass object parameter thread function.

to pass parameter thread use parametrizedthreadstart:

thread thread = new thread(new parametrizedthreadstart(func)); thread.start(obj); 

the parameterizedthreadstart delegate , thread.start(object) method overload make easy to pass data thread procedure.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -