Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #39594

Re: 7 lessons for embedded developers from ESC Boston 2015

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date Fri, 05 Jun 2015 12:40:17 -0500
Date Fri, 05 Jun 2015 07:40:17 -1000
From "Elizabeth D. Rather" <erather@forth.com>
Reply-To erather@forth.com
Organization FORTH, Inc.
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
Newsgroups comp.lang.forth
Subject Re: 7 lessons for embedded developers from ESC Boston 2015
References <2b24e0c7-e9bf-400a-bf2d-9710a4a6104a@googlegroups.com> <32c28c23-9ec0-4cbe-bb24-4a4db0caa3e5@googlegroups.com> <2cb81e7d-02ed-4627-8880-a7c283c78bce@googlegroups.com> <c0207aaf-5386-414a-a719-2b89d520c1b6@googlegroups.com> <mkri90$ifq$2@dont-email.me> <55717cc8.1436857348@news.eternal-september.org> <9042fb59-e436-4852-8a78-cc0aed85f99b@googlegroups.com>
In-Reply-To <9042fb59-e436-4852-8a78-cc0aed85f99b@googlegroups.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <AKGdnaj7-qKcQuzInZ2dnUU7-R-dnZ2d@supernews.com> (permalink)
Lines 62
X-Trace sv3-D8QzrAeSolenhE5pL2qxKJiQsSOv7obl/WFpKQmnshctqgNE4tWYkKLYYU0Di6oW4LdlN7TecKn33gO!ej1/f0SC3ThEQMF7h08YNSrteCNp3/WFRyNsntvoAWQ6g9CahalxGokneUHO1tpjEte3UR0MJBU3!cUbp2LOSqXon
X-Complaints-To www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 4330
Xref csiph.com comp.lang.forth:39594

Show key headers only | View raw


On 6/5/15 4:55 AM, Raimond Dragomir wrote:
> vineri, 5 iunie 2015, 13:48:15 UTC+3, Stephen Pelc a scris:
>> On Fri, 05 Jun 2015 03:15:54 -0400, rickman <gnuarm@gmail.com> wrote:
>>
>>> I don't know this is strictly true.  I believe there are some forths out
>>> there that incorporate an RTOS or at least multitasking/multiuser and
>>> not necessarily cooperative.  I don't recall any names, but I recall
>>> this being discussed.
>>
>> What stops a cooperative scheduler from being (hard) real time?
>>
> It's just crazy even to try to reach hard real time requirements with
> a cooperative rtos. Even a 10Hz task (100ms sharp, or ok take it with
> a +100us jitter). Unless your system has almost nothing to do and waits
> for the 100ms to schedule the "hard" real time task...

Certainly you need interrupts to do hard real-time. But there's no 
inconsistency between having a simple cooperative scheduler and 
interrupts not only from a clock but also the devices you're controlling.

>> Im my experience, two things. Program bugs and assumptions leading
>> to program bugs. In both cases, a simple cooperative scheduler with
>> a timeout interrupt is good enough.
>>
> Good enough is another thing. The interrupt can meet the hard real time
> requirement. I'm using such systems for almost twenty years. Hard realtime
> only with interrupts. Anything else is soft real-time with cooperative
> tasks.

The rule in FORTH, Inc. multitaskers is that a task that initiates I/O 
then sleeps until the I/O is complete. Whether completion is signaled by 
an interrupt or polling (1 or 2 instructions per poll, and the task is 
back to sleep again, so not very intrusive), that means in practice most 
tasks are asleep most of the time. In the rare case where there is some 
very intensive CPU-intensive activity (e.g. a big sort of stuff all in 
memory) it's very easy to insert a PAUSE in convenient spots in the process.

>> Since bare-metal Forths do not have buried code, the distinction
>> between tools such as the multitasker and the application code
>> is only one of name, not of availability. Whether these tools
>> form an RTOS or not is simply a question of whether there is a
>> consistent and documented API over a range of processors and/or
>> implementations.
>>
>> Stephen

Agreed.

Cheers,
Elizabeth

-- 
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

7 lessons for embedded developers from ESC Boston 2015 visualforth@rocketmail.com - 2015-05-19 15:44 -0700
  Re: 7 lessons for embedded developers from ESC Boston 2015 "Elizabeth D. Rather" <erather@forth.com> - 2015-05-19 14:55 -1000
    Re: 7 lessons for embedded developers from ESC Boston 2015 visualforth@rocketmail.com - 2015-05-20 10:04 -0700
  Re: 7 lessons for embedded developers from ESC Boston 2015 Mark Wills <markwills1970@gmail.com> - 2015-05-20 00:29 -0700
    Re: 7 lessons for embedded developers from ESC Boston 2015 djc <ciesinger@gmx.net> - 2015-05-20 03:47 -0700
    Re: 7 lessons for embedded developers from ESC Boston 2015 hughaguilar96@gmail.com - 2015-06-04 21:02 -0700
      Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-04 23:31 -0700
        Re: 7 lessons for embedded developers from ESC Boston 2015 rickman <gnuarm@gmail.com> - 2015-06-05 03:15 -0400
          Re: 7 lessons for embedded developers from ESC Boston 2015 stephen@mpeforth.com (Stephen Pelc) - 2015-06-05 10:48 +0000
            Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-05 07:55 -0700
              Re: 7 lessons for embedded developers from ESC Boston 2015 stephen@mpeforth.com (Stephen Pelc) - 2015-06-05 15:54 +0000
                Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-05 09:32 -0700
                Re: 7 lessons for embedded developers from ESC Boston 2015 "Elizabeth D. Rather" <erather@forth.com> - 2015-06-05 07:46 -1000
                Re: 7 lessons for embedded developers from ESC Boston 2015 hughaguilar96@gmail.com - 2015-06-06 16:28 -0700
                Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-06 21:00 -0700
                Re: 7 lessons for embedded developers from ESC Boston 2015 visualforth@rocketmail.com - 2015-06-09 10:04 -0700
                Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-09 10:58 -0700
                Re: 7 lessons for embedded developers from ESC Boston 2015 Paul Rubin <no.email@nospam.invalid> - 2015-06-07 20:40 -0700
              Re: 7 lessons for embedded developers from ESC Boston 2015 "Elizabeth D. Rather" <erather@forth.com> - 2015-06-05 07:40 -1000
          Re: 7 lessons for embedded developers from ESC Boston 2015 "Elizabeth D. Rather" <erather@forth.com> - 2015-06-05 07:31 -1000
        Re: 7 lessons for embedded developers from ESC Boston 2015 Mark Wills <markwills1970@gmail.com> - 2015-06-05 05:35 -0700
          Re: 7 lessons for embedded developers from ESC Boston 2015 foxaudioresearch@gmail.com - 2015-06-05 06:05 -0700
            Re: 7 lessons for embedded developers from ESC Boston 2015 Raimond Dragomir <raimond.dragomir@gmail.com> - 2015-06-05 07:43 -0700
              Re: 7 lessons for embedded developers from ESC Boston 2015 rickman <gnuarm@gmail.com> - 2015-06-05 14:47 -0400
              Re: 7 lessons for embedded developers from ESC Boston 2015 albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-06-06 09:28 +0000
            Re: 7 lessons for embedded developers from ESC Boston 2015 Mark Wills <markwills1970@gmail.com> - 2015-06-05 10:43 -0700
              Re: 7 lessons for embedded developers from ESC Boston 2015 Paul Rubin <no.email@nospam.invalid> - 2015-06-07 20:03 -0700

csiph-web