From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20040 invoked by alias); 23 May 2008 09:35:29 -0000 Received: (qmail 20030 invoked by uid 22791); 23 May 2008 09:35:28 -0000 X-Spam-Check-By: sourceware.org Received: from anchor-post-37.mail.demon.net (HELO anchor-post-37.mail.demon.net) (194.217.242.87) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 May 2008 09:34:59 +0000 Received: from calivar.demon.co.uk ([83.104.54.243] helo=xl5.calivar.com) by anchor-post-37.mail.demon.net with esmtp (Exim 4.68) id 1JzTfs-0006oY-Pf; Fri, 23 May 2008 09:34:57 +0000 Received: from xl5.calivar.com (localhost [127.0.0.1]) by xl5.calivar.com (Postfix) with ESMTP id EFE53138762; Fri, 23 May 2008 10:34:54 +0100 (BST) To: "ariga masahiro" Cc: "Andrew Lunn" , References: <001001c85189$461611c0$1c0110ac@ariga> <4782BE28.8030706@mlbassoc.com> <000601c8750f$5ffb19b0$1c0110ac@ariga> <001001c87522$98475a50$1c0110ac@ariga> <000c01c8b72c$95df1bd0$1c0110ac@ariga> <20080516125053.GA27629@lunn.ch> <001901c8b971$a14202c0$1c0110ac@ariga> <20080519131803.GA16046@lunn.ch> <001b01c8ba18$785ab0d0$1c0110ac@ariga> <20080520121817.GC28890@lunn.ch> <003601c8bca7$e5f66670$1c0110ac@ariga> From: Nick Garnett Original-Sender: nickg@ecoscentric.com Date: Fri, 23 May 2008 09:35:00 -0000 In-Reply-To: <003601c8bca7$e5f66670$1c0110ac@ariga> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] When or on what condition does "deschedule" happen? X-SW-Source: 2008-05/txt/msg00091.txt.bz2 "ariga masahiro" writes: > Hello, > > In order to measure the time of cyg_thread_delay, > I tried to insert next codes at the top of timeslice_main( void ) > function in timeslice2 test. > > diag_printf("10 SEC Start !3\n"); > cyg_thread_delay(1000); > diag_printf("Finisyed !3\n"); cyg_thread_delay(), as it's name implies, causes a thread to delay. timeslice_main() does not run in a thread, it is called directly from cyg_start(). If you want to run this code, do it in run_tests(). > > But appeared next error. > [cyg_net_init] Init: call_route_init(0x00000000) > [cyg_net_init] Done Note that you will not get very accurate timings if you have the network active. The random arrival of broadcast packets from the net may cause the network threads to run at any time. -- Nick Garnett eCos Kernel Architect eCosCentric Limited http://www.eCosCentric.com The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No: 4422071 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss