[concurrency-interest] SingleThreadExecutor

Ernst, Matthias matthias.ernst@coremedia.com
Sat, 24 Jan 2004 18:50:23 +0100


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3E2A2.8A833D3E
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
is there a reason why Executors#singleThreadExecutor is created with =
corePoolSize=3D1 and not =3D0 ? I use worker queues a lot that have to =
work serialized but are often idle and I prefer to not have the thread =
lying around.
=20
Matthias
=20
--
Matthias Ernst
CoreMedia - The Content Technology Experts


------_=_NextPart_001_01C3E2A2.8A833D3E
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML =
DIR=3Dltr><HEAD><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1"></HEAD><BODY>=0A=
<DIV id=3DidOWAReplyText68754 dir=3Dltr>=0A=
<DIV dir=3Dltr>=0A=
<DIV><FONT face=3D"Courier New" color=3D#000000 size=3D2>Hi,</FONT></DIV>=0A=
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3D"Courier New" size=3D2>is there a reason why =0A=
Executors#singleThreadExecutor is created with corePoolSize=3D1 and not =
=3D0 ? I use =0A=
worker queues a lot that have to&nbsp;work serialized but are often idle =
and I =0A=
prefer to not have the thread lying around.</FONT></DIV>=0A=
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3D"Courier New" size=3D2>Matthias</FONT></DIV>=0A=
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV></DIV></DIV>=0A=
<DIV id=3DidSignature67604 dir=3Dltr>=0A=
<DIV><B><FONT face=3D"Courier New" color=3Dgray size=3D2><SPAN =
lang=3DEN-GB =0A=
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Courier New'">--</SPAN></FONT></B></DIV>=0A=
<DIV><B><FONT face=3D"Courier New" color=3Dgray size=3D2><SPAN =
lang=3DEN-GB =0A=
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Courier New'">Matthias =0A=
Ernst<BR></SPAN></FONT></B><B><FONT face=3D"Courier New" color=3Dgray =
size=3D2><SPAN =0A=
lang=3DEN-GB =0A=
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Courier New'">CoreMedia =0A=
- The Content Technology Experts<BR></DIV></SPAN></FONT></B><B><FONT =0A=
face=3D"Courier New" color=3Dgray size=3D2><SPAN lang=3DEN-GB =0A=
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: =
'Courier New'"></SPAN></FONT></B></DIV></BODY></HTML>
------_=_NextPart_001_01C3E2A2.8A833D3E--