Need help from 5-15. Thanks in advance. Google the following search terms \"Tiny
ID: 3686136 • Letter: N
Question
Need help from 5-15. Thanks in advance. Google the following search terms "TinyOS FAQ" Find the version from Stanford university. Answer the following questions: 1. What is TinyOS 2. How is TinyOS different than Arduino 3. What are TinyOS strengths 4. What are TinyOS weaknesses Google the following search terms "TinyOS scheduler" Find the document "Schedulers and Tasks - TinyOS" Answer the follow ing questions 5. What are the two basic computational abstractions? 6. What is the scheduling policy? 7. TinyOS tasks do two things which are? a) They run b) Pre-empt one another? 8. The task queue in TinyOS 1.x is implemented as what? 9. All tasks from all components share a single resource one misbehaving component can cause what? 10. In TinyOS 2.x, a basic post will only fail if and only if the task has what? 11. In TinyOS 2.x, the scheduler is what? 12. The basic task in TinyOS 2.x is what? 13. The Scheduler interface has commands for initialization and running tasks, and is used by TinyOS to do what? 14. The scheduler is responsible for putting the processor to sleep predominantly for what? 15. If two tasks must run in a particular temporal order, this order should be enforced by the earlie task doing what?Explanation / Answer
The latest version of Tiny OS is 2.1.2 released by Stanford university.
1)Tiny OS is embedded,component-based operating system and platform for low power wireless devices.
2)At a high level,Arduino is lighter weight than Tiny OS,Arduino is some simple C support for microcontrollers whereas Tiny OS is a full-fledged operating system
some other differences based on technical factors
3)TinyOS supports multiple microcontroller families and radio chips,so there is a significant body if existing code which you can start from.Because TinyOS has thousands of users and its existing design is over five years old
it has especially strong support for low-power operation,including wireless networking.TinyOS also supports secure networking on some radio chips.
4)Its programming model takes a little getting used to,add computationally-intensive applications can be difficult to write.These two weaknesses are tightly.
5)asynchronous events and tasks are two basic computational abstractions in TinyOS
6)FIFO scheduling policy has been used by TinyOS
7) a) run to completion
b) do not pre-empt one another
8)task queue in TinyOS 1.x is implemented as fixed size circular buffer as of function pointers.
9)All tasks from all components share a single resource: one misbehaving component can cause other's posts to fail.
10)In TinyOS 2.x,a basic port will only if and only if the task has already been posted and not started execution,
11)In TinyOS 2.x,the scheduler is a TinyOS component
12)the basic task in In TinyOS 2.x is parameterless and FIFO.
13)the scheduler interface has commands to initialization and running tasks to execute task.The init() command initializes the task queue and scheduler data structures. runNextTask() MUST run to completion whatever task the scheduler's policy decides is the next one: the return value indicates whether it ran a task. The bool parameter sleep indicates what the scheduler should do if there are no tasks to execute. If sleep is FALSE, then the command will return immediately with FALSE as a return value. If sleep is TRUE, then the command MUST NOT return until a task is executed, and SHOULD put the CPU to sleep until a new task arrives. Calls of runNextTask(FALSE) may return TRUE or FALSE; calls of runNextTask(TRUE) always return TRUE. The taskLoop() command tells the scheduler to enter an infinite task-running loop, putting the MCU into a low power state when the processor is idle: it never returns.
14)the scheduler is responsible for putting the processor to sleep predominantly for efficiency reasons.Including the sleep call with in the scheduler improves the efficiency of the task loop,in terms of the assembly generated by TinyOS
15)If two tasks must run in particular temporal order,this order should be enforced by the earlier task posting the later task
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.