hugs thread scheduling

Sigbjorn Finne sof@galois.com
Tue, 8 Jan 2002 10:50:32 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_02B6_01C19832.4B364880
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Maybe (I have to think through the consequences a bit first), but
until that time you may want to insert calls to 'yield' immediately =
after
a call to 'forkIO' -- that should have the same effect as the tweak you
refer to.

--sigbjorn
  ----- Original Message -----=20
  From: Conal Elliott=20
  To: hugs-bugs@haskell.org=20
  Sent: Tuesday, January 08, 2002 10:04
  Subject: hugs thread scheduling


  Hugs still (again?) has a thread scheduling behavior that breaks Fran =
immediately.  The required Prelude tweak is described at =
http://research.microsoft.com/~conal/Fran/news.htm under the "1.15" =
heading.  Will this Prelude change get made at some point?



      - Conal




------=_NextPart_000_02B6_01C19832.4B364880
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P.MsoPlainText {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
LI.MsoPlainText {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
DIV.MsoPlainText {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Maybe (I have to think through the =
consequences a=20
bit first), but</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>until that time you may want =
to&nbsp;insert calls=20
to 'yield' immediately after</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>a call to 'forkIO' -- that should have =
the same=20
effect as the tweak you</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>refer to.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--sigbjorn</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dconal@microsoft.com =
href=3D"mailto:conal@microsoft.com">Conal=20
  Elliott</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dhugs-bugs@haskell.org=20
  href=3D"mailto:hugs-bugs@haskell.org">hugs-bugs@haskell.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, January 08, 2002 =

  10:04</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> hugs thread =
scheduling</DIV>
  <DIV><BR></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoPlainText><FONT face=3D"Courier New" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt">Hugs still (again?) has a thread scheduling =
behavior=20
  that breaks Fran immediately.&nbsp; The required Prelude tweak is =
described at=20
  <A=20
  =
href=3D"http://research.microsoft.com/~conal/Fran/news.htm">http://resear=
ch.microsoft.com/~conal/Fran/news.htm</A>=20
  under the =931.15=94 heading.&nbsp; Will this Prelude change get made =
at some=20
  point?</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;&nbsp;&nbsp; - Conal</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: =
12pt"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_02B6_01C19832.4B364880--