 tinyos is a free and open source software component-based operating system and platform targeting wireless sensor networks (wsns). tinyos is an embedded operating system written in the nesc programming language as a set of cooperating tasks and processes. it is intended to be incorporated into smartdust. tinyos started as a collaboration between the university of california, berkeley in co-operation with intel research and crossbow technology, and has since grown to be an international consortium, the tinyos alliance. ==implementation== tinyos applications are written in nesc, a dialect of the c language optimized for the memory limits of sensor networks. its supplementary tools are mainly in the form of java and shell script front-ends. associated libraries and tools, such as the nesc compiler and atmel avr binutils toolchains, are mostly written in c. tinyos programs are built out of software components, some of which present hardware abstractions. components are connected to each other using interfaces. tinyos provides interfaces and components for common abstractions such as packet communication, routing, sensing, actuation and storage. tinyos is completely non-blocking: it has one stack. therefore, all i/o operations that last longer than a few hundred microseconds are asynchronous and have a callback. to enable the native compiler to better optimize across call boundaries, tinyos uses nesc's features to link these callbacks, called events, statically. while being non-blocking enables tinyos to maintain high concurrency with one stack, it forces programmers to write complex logic by stitching together many small event handlers. to support larger computations, tinyos provides tasks, which are similar to a deferred procedure call and interrupt handler bottom halves. a tinyos component can post a task, which the os will schedule to run later. tasks are non-preemptive and run in fifo order. this simple concurrency model is typically sufficient for i/o centric applications, but its difficult
Embedded_operating_systems Wireless_sensor_network