Multithread

A

amberti

I'm trying to write a multithread application:

it will get different kind of data from DB, my intention was to create
different thread for each query.
I tryed to use the AsyncHelper.FireAndForget method u can easily find
on this goup but i wasn't lucky: I was able to crate threads but not to
get back results....

Any idea/modification of AsyncHelper.FireAndForget will be gratly
appreciated.

Basicly I need to call a method with parameters (array of parameters)
and get back array of sorted list or similar...

Thanks in advance.
 
W

William Stacey [MVP]

I don't find Background worker all that helpful. Here is a simple pattern
you can use for just about any work:
http://channel9.msdn.com/ShowPost.aspx?PostID=171594

--
William Stacey [MVP]

| I'm trying to write a multithread application:
|
| it will get different kind of data from DB, my intention was to create
| different thread for each query.
| I tryed to use the AsyncHelper.FireAndForget method u can easily find
| on this goup but i wasn't lucky: I was able to crate threads but not to
| get back results....
|
| Any idea/modification of AsyncHelper.FireAndForget will be gratly
| appreciated.
|
| Basicly I need to call a method with parameters (array of parameters)
| and get back array of sorted list or similar...
|
| Thanks in advance.
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top