From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28128 invoked by alias); 25 Jun 2008 10:19:43 -0000 Received: (qmail 28120 invoked by uid 22791); 25 Jun 2008 10:19:43 -0000 X-Spam-Check-By: sourceware.org Received: from hermes.mlbassoc.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 10:19:25 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 2729B3379105; Wed, 25 Jun 2008 04:19:24 -0600 (MDT) Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id DC4523379102; Wed, 25 Jun 2008 04:19:21 -0600 (MDT) Message-ID: <48621BA8.3000101@mlbassoc.com> Date: Wed, 25 Jun 2008 11:10:00 -0000 From: Gary Thomas User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Yong Chen Tan CC: ecos-discuss@ecos.sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit 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] ecos-discuss@ecos.sourceware.org X-SW-Source: 2008-06/txt/msg00148.txt.bz2 Yong Chen Tan wrote: > > Hi, I got some doubts regarding the multi-threading. > I experience some problems when i do multi-threading. > The thread seems to stuck at the scanf function. Is it normal? Are there ways to solve this problem? What's the source of your input? Notice that the default console (haldiag) does non-interrupt I/O (in fact with interrupts disabled) and will definitely block all other threads from running. If you want interruptable console I/O, you'll need to enable the serial drivers. Check the archives for lengthy discussions on this point. > Is eCos multithreading - cooperative or preemptive? Preemptive. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss