🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #1034

Jak zakoñczyæ Thread?

#1034
From: mgmg
Date: Sat, 01 May 2004 09:38
19 lines
1615 bytes
W g��wnym procesie potrzebuje co jakis czas stworzy� oddzielny proses
(czasem kilka naraz ), pokaza� mu funkcj�, kt�r� ma wykona� i zapomnie� o
nim.


System.Threading.ThreadStart myThreadDelegate = new
System.Threading.ThreadStart(MOJA);
myThreadMOJA = new System.Threading.Thread(myThreadDelegate);

myThreadMOJA.Start();


MOJA si� wykonuje ale moje pytanie czy jak si� soko�czy (dotrze do return)
to proses zostanie przez system usuni�ty? Podej�ewam, �e nie bo program
niechce si� zako�czy� mimo �e g��wny proces zosta� zako�czony. Czy poprawne
jest dodanie na ko�cu funkcji wywo�ania Abort()? Czy to co� zmieni (bo
pr�bowa�em i nic)? Jak to zrobi� poprawnie?

Grzegorz
Technical Details
Message-ID: <c6vrbn$k7r$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "mgmg" <mg...@go2.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Jak zakoñczyæ Thread?
Date: Sat, 1 May 2004 11:38:43 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 21
Message-ID: <c6vrbn$k7r$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 195.116.149.2
X-Trace: nemesis.news.tpi.pl 1083404473 20731 195.116.149.2 (1 May 2004 09:41:13 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Sat, 1 May 2004 09:41:13 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit