5 2marks
5 2marks
Part – A (2 MARKS)
1. Define a System.
A way of doing one or more tasks according to a program is called system.
7. What are the various embedded system designs Modeling Refining (or “partitioning”)
HW-SW partitioning
13. Explain digital signal processing in embedded system continued digitization of signals
increasing the role of DSP in ES.
Signals are represented digitally as sequence of “samples”
ADC’s are moving closer to signals
15. What are the two essential units of a processor on an embedded system?
1. Program flow control unit (CU)
2. Execution unit (EU)
16. What does the execution unit of a processor in an embedded system do?
The execution unit implements data transfer and data conversion. It includes ALU and
circuits that execute instruction for jump, interrupt, etc.,
19. When is Application Specific System processors (ASSPs) used in an embedded system?
An ASSP is dedicated to real-time video processing applications such as video conferencing,
video compression and decompression systems. It is used as an additional processing unit for
running application specific tasks in the place of processing using embedded software.
2. Define bus.
Buses: The exchange of information.
Information is transferred between units of the microcomputer by collections of
conductors called buses.There will be one conductor for each bit of information to be
passed, e.g., 16 lines for a 16 bit address bus. There will be address, control, and data
buses
22. What are the four types of data transfer used in USB?
Controlled transfer
Bulk transfer
Interrupt driven data transfer
Iso-synchronous transfer
3. Define queue.
A structure with a series of elements.
Uses FIFO mode.
It is used when an element is not directly accessed using pointer and index but
only through FIFO.
Two pointers are used for insertion and deletion.
4. Define stack.
A structure with a series of elements which uses LIFO mode.
An element can be pushed only at the top and only one pointer is used for POP.
Used when an element is not accessible through pointer and index, but only
through LIFO.
5. Define List.
Each element has a pointer to its next element.
Only the first element is identifiable and it is done using list-top pointer (header).
Other element has no direct access and is accessed through the first element.
3. Define (TCB)
The TCB stands for Task Control Block which holds the control of all the tasks within the
block. It has separate stack and program counter for each task.
4. What is a thread?
A thread otherwise called a lightweight process (LWP) is a basic unit of CPU utilization, it
comprises of a thread id, a program counter, a register set and a stack. It shares with other
threads belonging to the same process its code section, data section, and operating system
resources such as open files and signals.
7. Define RTOS.
A real-time operating system (RTOS) is an operating system that has been developed for
real-time applications. It is typically used for embedded applications, such as mobile
telephones, industrial robots, or scientific research equipment.
16. When the error will occur when we use the semaphore?
i. When the process interchanges the order in which the wait and signal operations on the
semaphore mutex.
ii. When a process replaces a signal (mutex) with wait (mutex).
iii. When a process omits the wait (mutex), or the signal (mutex), or both.
17. Differentiate counting semaphore and binary semaphore.
Binary Semaphore:
The general-purpose binary semaphore is capable of addressing the requirements of both
forms of task coordination: mutual exclusion and synchronization.
A binary semaphore can be viewed as a flag that is available (full) or unavailable (empty).
Counting semaphores are another means to implement task synchronization and mutual exclusion.
Counting Semaphore:
The counting semaphore works like the binary semaphore except that it keeps track of the
number of times a semaphore is given. Every time a semaphore is given, the count is
incremented; every time a semaphore is taken, the count is decremented. When the count
reaches zero, a task that tries to take the semaphore is blocked. As with the binary semaphore,
if a semaphore is given and a task is blocked, it becomes unblocked. However, unlike the
binary semaphore, if a semaphore is given and no tasks are blocked, then the count is
incremented. This means that a semaphore that is given twice can be taken twice without
blocking.
27. What are the different ways in which a thread can be cancelled?
Cancellation of a target thread may occur in two different scenarios:
Asynchronous cancellation: One thread immediately terminates the target thread is called
asynchronous cancellation.
Deferred cancellation: The target thread can periodically check if it should terminate,
allowing the target thread an opportunity to terminate itself in an orderly fashion.
31. What are the various scheduling criteria for CPU scheduling?
The various scheduling criteria are
CPU utilization
Throughput
Turnaround time
Waiting time
Response time
32. Define throughput?
Throughput in CPU scheduling is the number of processes that are completed per unit
time. For long processes, this rate may be one process per hour; for short transactions,
throughput might be 10 processes per second.
33. What is turnaround time?
Turnaround time is the interval from the time of submission to the time of completion of
a process. It is the sum of the periods spent waiting to get into memory, waiting in the ready
queue, executing on the CPU, and doing I/O.
34. Define race condition.
When several process access and manipulate same data concurrently, then the outcome of
the execution depends on particular order in which the access takes place is called race
condition. To avoid race condition, only one process at a time can manipulate the shared
variable.
36. What are the requirements that a solution to the critical section problem must satisfy?
The three requirements are
Mutual exclusion
Progress
Bounded waiting
37. Define deadlock.
A process requests resources; if the resources are not available at that time, the process
enters a wait state. Waiting processes may never again change state, because the resources
they have requested are held by other waiting processes. This situation is called a deadlock.
38. What are conditions under which a deadlock situation may arise?
A deadlock situation can arise if the following four conditions hold simultaneously in a
system:
1. Mutual exclusion
2. Hold and wait
3. No pre-emption
4. Circular wait
39. What are the various shared data operating system services?
Explain how operating systems provide abstraction from the computer hardware.
describe the meaning of processes, threads and scheduling in a multitasking operating
system.
describe the role of memory management explaining the terms memory swapping,
memory paging, and virtual memory.
contrast the way that MS-DOS and unix implement file systems compare the design of
some real operating systems.
4. Name any two queue related functions for the inter task communications.
Queue related functions includes
Creating a queue for an IPC,
Waiting for an IPC messagea t a queue,
Emptying the Queue and Eliminating All the Message pointers,
Sendinga message-pointetor the Queue,
Sending a message pointer and inserting at the Queue Front and
Querying to Find the Message and Enor Information for the Queue ECB.
To connect a message queue, or create it if it doesn\'t exist. The call to accomplish this is the
msgget() system call:
int msgget(key_t key, int msgflg);
msgget(): returns the message queue ID on success, or -1 on failure (and it sets errno, of
course.) The first, key is a system-wide unique identifier describing the queue you want to
connect to (or create). Every other process that wants to connect to this queue will have to
use the same key