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

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [qiao <at80401@yahoo.com>] (fwd)



>From owner-rtl Fri Jun 22 07:47:43 2001
Received: from web10706.mail.yahoo.com (web10706.mail.yahoo.com [216.136.130.214])
	by hq.fsmlabs.com (8.11.2/8.11.2) with SMTP id f5MDlhe02971
	for <rtl@fsmlabs.com>; Fri, 22 Jun 2001 07:47:43 -0600
Message-ID: <20010622134132.44089.qmail@web10706.mail.yahoo.com>
Received: from [61.187.27.95] by web10706.mail.yahoo.com; Fri, 22 Jun 2001 06:41:32 PDT
Date: Fri, 22 Jun 2001 06:41:32 -0700 (PDT)
From: qiao <at80401@yahoo.com>
Subject: about rt-task period
To: rtl@fsmlabs.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

hello

   when testing if the periodis too short,I find the code below do not work
correctly
-----------------------------------
int overrun = 0;
do{
	pthread_wait_np();
	if(overrun) {
	   conpr("overrun!\n");
	   break; 
	}
	overrun++;
	/* calculation code */

	overrun--;

  }while(1);
------------------------------------
for example, the calculation elapse 17 us, I set period=20us,
the min,max value(actual period minus 20us)  is about 2.6 , 
9us /*see examples/measurement/rt_process.c*/,but if  set period=10us, 
the min,max is about 23,30us , greater than perid! "overrun" doesn't 
work, why?

thanks.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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