[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: (fwd)



>From owner-rtl Tue Jul 24 13:30:32 2001
Received: from engrsv09.engr.uark.edu (engrsv09.engr.uark.edu [130.184.160.37])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f6OJUW701584
	for <rtl@fsmlabs.com>; Tue, 24 Jul 2001 13:30:32 -0600
Received: from novax (novax.engr.uark.edu [130.184.172.98]) by engrsv09.engr.uark.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id 3TN5KZ9B; Tue, 24 Jul 2001 14:26:45 -0500
From: "Hai Quang Nguyen" <hqn01@uark.edu>
To: <rtl@fsmlabs.com>
Subject: RE: [rtl] thread-task
Date: Tue, 24 Jul 2001 14:36:06 -0500
Message-ID: <000001c11477$e3343dc0$62acb882@engr.uark.edu>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0001_01C1144D.FA5E35C0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
In-Reply-To: <001f01c1136b$fd722830$d8ec8cc1@amutlu>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C1144D.FA5E35C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

The difference is probably the concept of task and thread. A task could
be a thread or a process depends on system.
In RT-Linux, the real-time OS - Real time Linux is a kernel process
which will spawn multiple threads as real-time tasks.
So, under RT-Linux real-time tasks are threads.
Yes, there is a task_struct for each thread, it's in scheduler header. I
have to say RT-Linux have a very neat way to do context switch :-)
 
-Hai
 
-----Original Message-----
From: owner-rtl@fsmlabs.com [mailto:owner-rtl@fsmlabs.com] On Behalf Of
Ahmet Mutlu
Sent: Monday, July 23, 2001 6:38 AM
To: rtl@fsmlabs.com
Subject: [rtl] thread-task
 
what is the difference of a task and thread, 
in system level.
i mean is there a task_struct for each thread?

------=_NextPart_000_0001_01C1144D.FA5E35C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C1144D.F8A0A740";>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:16792199 0 0 0 65791 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The difference is probably the =
concept of
task and thread. A task could be a thread or a process depends on =
system.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>In RT-Linux, the real-time OS =
&#8211; Real
time Linux is a kernel process which will spawn multiple threads as =
real-time
tasks.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>So, under RT-Linux real-time tasks =
are
threads.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Yes, there is a task_struct for =
each
thread, it&#8217;s in scheduler header. I have to say RT-Linux have a =
very neat
way to do context switch </span></font><font size=3D2 color=3Dnavy =
face=3DWingdings><span
style=3D'font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:Ari=
al;
mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;color:navy;mso-cha=
r-type:
symbol;mso-symbol-font-family:Wingdings'><span =
style=3D'mso-char-type:symbol;
mso-symbol-font-family:Wingdings'>J</span></span></font><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>-Hai<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> =
owner-rtl@fsmlabs.com
[mailto:owner-rtl@fsmlabs.com] <b><span style=3D'font-weight:bold'>On =
Behalf Of </span></b>Ahmet
Mutlu<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, July 23, =
2001 6:38
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> rtl@fsmlabs.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [rtl] =
thread-task</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3D"Times New Roman"><span
style=3D'font-size:10.0pt'>what is the difference of a task and thread, =
</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3D"Times New Roman"><span
style=3D'font-size:10.0pt'>in system level.</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3D"Times New Roman"><span
style=3D'font-size:10.0pt'>i mean is there a task_struct for each =
thread?</span></font><o:p></o:p></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_0001_01C1144D.FA5E35C0--

----- End of forwarded message from owner-rtl@fsmlabs.com -----