Re: multiple threads writing to WebBrowser, getting deadlocked

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hmm. You've still got a potential deadlock, unfortunately.

Yes, I knew that... I should have been accurate and said that if you
click it just at the right time, you have a chance to create the
deadlock, since the same conditions still exist. But, the likelihood
is 1 in a billion.

I realy didn't mean this was a solution. I meant to show how code
that you would think is broken appears to run fine. It's still
broken. And this really threw me off.

Using BeginInvoke is certainly a reasonable way of avoiding this,
although I'd avoid calling Thread.Join in the UI thread too.

Yes, I choose both (call Control.BeginInvoke, and to not call
Thread.Join)

Zytan

.



Relevant Pages

  • Re: An ESP experiment I set up, I need some help evaluating my resluts
    ... What is the interpretation of this number? ... the likelihood of doing this well by chance. ... possible to obtain in the way I originally understood your scoring scheme. ...
    (sci.stat.math)
  • Re: [RFC] Thread Migration Preemption - v4
    ... Oleg Nesterov wrote: ... Again, this can deadlock. ... migration_threadis SCHED_FIFO, and it shares the ... chance to finish its critical section. ...
    (Linux-Kernel)
  • Re: Andrea VM changes
    ... > kill, but it fixes the oom ... > practice it may look like a kernel deadlock despite syscalls returns ... The chance the well behaved app gets killed is big, ...
    (Linux-Kernel)
  • Re: paste results double spaced
    ... As John says, we need more information to have any chance of helping, but ... one likelihood re pasting to email is that your email is set for HTML rather ...
    (microsoft.public.mac.office.word)
  • Re: [RFC] Thread Migration Preemption - v4
    ... Oleg Nesterov wrote: ... Again, this can deadlock. ... migration_threadis SCHED_FIFO, and it shares the ... chance to finish its critical section. ...
    (Linux-Kernel)