[Gtk-sharp-list] ThreadNotify: The saga continues
Pablo Baena
pbaena@uol.com.ar
29 Oct 2002 08:59:50 +0000
--=-texAhMZStZ53BI6YKlba
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi!
You might for instance want to read John Ousterhout's notes for his
Usenix keynote on `Why threads are a bad idea (most of the time)' or
something like that.
John proposes on its paper:
Long-running handlers make application non-responsive.
* Fork off subprocesses for long-running things (e.g.
multimedia), use events to find out when done.
I tried to do this, but since MONO events are just delegates, raising an
event from a thread would cause the usual problems.
I then used:
* Periodically call event loop in handler (reentrancy adds
complexity).
But this is just much worse than using ThreadNotify. :)
* Break up handlers (e.g. event-driven I/O).
Don't think I can apply this to my problem.
Anyway, I shouldn't be bothering you with my issues in the first place.
:)
Pablo
--=-texAhMZStZ53BI6YKlba
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY>
<FONT SIZE="3">Hi!</FONT>
<BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>You might for instance want to read John Ousterhout's notes for his</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Usenix keynote on `Why threads are a bad idea (most of the time)' or</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>something like that. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I></PRE>
</BLOCKQUOTE>
<FONT SIZE="3">John proposes on its paper:</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3"><I>Long-running handlers make application non-responsive.</FONT></I>
<UL>
<LI><FONT SIZE="3">Fork off subprocesses for long-running things (e.g. multimedia), use events to find out when done.</FONT></LI>
</UL>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3">I tried to do this, but since MONO events are just delegates, raising an event from a thread would cause the usual problems.</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3">I then used:</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<UL>
<LI><FONT SIZE="3">Periodically call event loop in handler (reentrancy adds complexity).</FONT></LI>
</UL>
<FONT SIZE="3">But this is just much worse than using ThreadNotify. :)</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<UL>
<LI><FONT SIZE="3">Break up handlers (e.g. event-driven I/O).</FONT></LI>
</UL>
<FONT SIZE="3">Don't think I can apply this to my problem.</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3">Anyway, I shouldn't be bothering you with my issues in the first place. :)</FONT>
<BR>
<FONT SIZE="3">Pablo</FONT>
</BODY>
</HTML>
--=-texAhMZStZ53BI6YKlba--