About: Cyclic executive     Goto   Sponge   Distinct   Permalink

An Entity of Type : dbo:Organisation, within Data Space : dbpedia.org associated with source document(s)
QRcode icon
http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FCyclic_executive

A cyclic executive is an alternative to a real-time operating system. It is a form of cooperative multitasking, in which there is only one task. The sole task is typically realized as an infinite loop in main, e.g. in C. The outer 100 ms cycle is called the major cycle. In this case, there is also an inner minor cycle of 50 ms. In this first example the outer versus inner cycles aren't obvious. We can use a counting mechanism to clarify the major and minor cycles.

AttributesValues
rdf:type
rdfs:label
  • Cyclic Executive (de)
  • Cyclic executive (en)
rdfs:comment
  • Cyclic Executive ist eine Alternative zu Echtzeitbetriebssystemen. Es ist eine Form des Kooperativen Multitasking, in der lediglich ein Task läuft. Der einzige Task ist typischerweise als Endlosschleife geschrieben, z. B. in der Programmiersprache C in der main-Methode. (de)
  • A cyclic executive is an alternative to a real-time operating system. It is a form of cooperative multitasking, in which there is only one task. The sole task is typically realized as an infinite loop in main, e.g. in C. The outer 100 ms cycle is called the major cycle. In this case, there is also an inner minor cycle of 50 ms. In this first example the outer versus inner cycles aren't obvious. We can use a counting mechanism to clarify the major and minor cycles. (en)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • Cyclic Executive ist eine Alternative zu Echtzeitbetriebssystemen. Es ist eine Form des Kooperativen Multitasking, in der lediglich ein Task läuft. Der einzige Task ist typischerweise als Endlosschleife geschrieben, z. B. in der Programmiersprache C in der main-Methode. (de)
  • A cyclic executive is an alternative to a real-time operating system. It is a form of cooperative multitasking, in which there is only one task. The sole task is typically realized as an infinite loop in main, e.g. in C. The basic scheme is to cycle through a repeating sequence of activities, at a set frequency (AKA time-triggered cyclic executive). For example, consider the example of an embedded system designed to monitor a temperature sensor and update an LCD display. The LCD may need to be written twenty times a second (i.e., every 50 ms). If the temperature sensor must be read every 100 ms for other reasons, we might construct a loop of the following appearance: int main(void){ while (1) { // This loop is designed to take 100 ms, meaning // all steps add up to 100 ms. // Since this is demo code and we don't know how long // tempRead or lcdWrite take to execute, we assume // they take zero time. // As a result, the delays are responsible for the task scheduling / timing. // Read temp once per cycle (every 100 ms) currTemp = tempRead; // Write to LCD twice per cycle (every 50 ms) lcdWrite(currTemp); delay(50); lcdWrite(currTemp); delay(50); // Now 100 ms (delay(50) + delay(50) + tempRead + lcdWrite + lcdWrite) // has passed so we repeat the cycle. }} The outer 100 ms cycle is called the major cycle. In this case, there is also an inner minor cycle of 50 ms. In this first example the outer versus inner cycles aren't obvious. We can use a counting mechanism to clarify the major and minor cycles. int main(void){ unsigned int i = 0; while (1) { // This loop is designed to take 50 ms. // Since this is demo code and we don't know how long // tempRead or lcdWrite take to execute, we assume // they take zero time. // Since we only want tempRead to execute every 100ms, we use // an if statement to check whether a counter is odd or even, // and decide whether to execute tempRead. // Read temp every other cycle (every 100 ms) if ( (i%2) == 0) { currTemp = tempRead; } // Write to LCD once per cycle (every 50 ms) lcdWrite(currTemp); delay(50); i++; // Now 50 ms has passed so we repeat the cycle. }} (en)
gold:hypernym
prov:wasDerivedFrom
page length (characters) of wiki page
foaf:isPrimaryTopicOf
is Link from a Wikipage to another Wikipage of
is foaf:primaryTopic of
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (378 GB total memory, 54 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software