[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Tue, 29 May 2001 10:46:32 +0200 (CEST)
>From owner-rtl Tue May 29 03:42:34 2001
Received: from hq2.fsmlabs.com (hq2.fsmlabs.com [209.155.42.199])
by hq.fsmlabs.com (8.11.2/8.11.2) with SMTP id f4T9gYs24521
for <rtl@fsmlabs.com>; Tue, 29 May 2001 03:42:34 -0600
Received: (qmail 23059 invoked by uid 1002); 29 May 2001 09:34:33 -0000
Date: Tue, 29 May 2001 03:34:33 -0600
From: Victor Yodaiken <yodaiken@fsmlabs.com>
To: rtl@fsmlabs.com
Cc: rtl@rtlinux.org
Subject: Re: [rtl] Bug???
Message-ID: <20010529033433.B22920@hq2>
References: <20010523160029.9114.qmail@linuxmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <20010523160029.9114.qmail@linuxmail.org>; from geoduke@linuxmail.org on Thu, May 24, 2001 at 12:00:29AM +0800
Organization: FSM Labs
On Thu, May 24, 2001 at 12:00:29AM +0800, George Doukas wrote:
> I wrote this simple module for RTLinux...
>
> #include <rtl.h>
> #include <time.h>
> #include <rtl_sched.h>
> #include <rtl_sync.h>
>
> pthread_t thread;
>
> void * thread_code(void *t) {
> int i,j;
>
> for (i=0;i<10;i++) {
> for(j=0;j<10;j++)
> rtl_printf("-");
> }
>
> pthread_suspend_np(thread);
> return (void *)0;
> }
>
> int init_module(void) {
> pthread_create(&thread,NULL,thread_code,0);
> return 0;
> }
>
> void cleanup_module(void) {
> pthread_delete_np(thread);
> }
>
> There was no problem runing it.
>
> But when I changed the second for loop...
> for (i=0;i<10;i++) {
> for(j=0;j<1000;j++)
> rtl_printf("-");
> }
> I got this message:
> "Aiee, killing interrupt handler
> Kernel panic:Attempted to kill the idle task!
> In interrupt handler - not syncing."
>
> Why?
> Is there a maximum limit to the time that a RT process is runing?
What version of RTLinux and what compile options?