c# - Silverlight application not responding when multiple threads launched -



c# - Silverlight application not responding when multiple threads launched -

i have silverlight application kicks off number of jobs on server side. each job unit of work independent of each other.

i used parallel.foreach() , works fine realized if had big number of jobs (say on 300), when thread count increases 50 silverlight application seems stop responding (it not freeze browser grid should have info populated in empty , little doughnut keeps spinning).

only when thread counts drop 1 time again (i.e. jobs have finished processing) grid populated.

i testing asp.net development servers (cassini based) , wondering has it.

i switched code utilize async programming model got same problem threads increased.

any ideas may causing this?

jd

i thinking doing threadpool.setmaxthread() read somewhere may not work web hosted apps.

if go gobbling threads parallel each there aren't threads left available service wcf requests grid depending on fetch info needs display.

you want utilize paralleloptions parameter in foreach method specify maximum number of parallel operations dispatched @ 1 time.

c# multithreading silverlight

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -