From owner-freebsd-hackers Tue Dec 28 9:11: 7 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from test.tar.com (test.tar.com [204.95.187.4]) by hub.freebsd.org (Postfix) with ESMTP id 8083315486 for ; Tue, 28 Dec 1999 09:11:03 -0800 (PST) (envelope-from dick@test.tar.com) Received: (from dick@localhost) by test.tar.com (8.9.3/8.9.3) id LAA91273; Tue, 28 Dec 1999 11:10:58 -0600 (CST) (envelope-from dick) Date: Tue, 28 Dec 1999 11:10:58 -0600 From: "Richard Seaman, Jr." To: Steffen Merkel Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel threads Message-ID: <19991228111058.B75539@tar.com> References: <005101bf508e$1ab48700$0201a8c0@blade> <19991227120931.H5975@tar.com> <001c01bf5118$1f4936a0$0201a8c0@blade> <19991228083008.A75539@tar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <19991228083008.A75539@tar.com>; from dick@tar.com on Tue, Dec 28, 1999 at 08:30:08AM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Dec 28, 1999 at 08:30:08AM -0600, Richard Seaman, Jr. wrote: > On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: > > > Sorry, but I'm learning C for only some weeks now. Why does the main > > thread complete if I insert a while(1); ? I thougt that this while statement > > would get executed forever (until I press ^C). > > You're right, of course. My brain was not fully in gear when I wrote that. BTW, I compiled your program with the while(1) included and it runs fine here. -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message