Ace - AI Tutor
Ask Our Educators
Textbooks
My Library
Flashcards
Scribe - AI Notes
Notes & Exams
Download App
Tebogo Malogadithlare

Tebogo M.

Divider

Questions asked

ANSWERED

Carson Merrill verified

Numerade educator

Practical 2: Four-bits decoder and temperature system The aim of this practical is to be able to display on PROCESSING the states of four LEDs and decode the decimal number represented using your ESP32 alongside the ambient temperature given by the LM35. • Each LED must be controlled by a switch mounted with a pull down resistor of 10K?. • Each LEDs must be connected with a resistor of 100? to protect the LED. • The output of the temperature sensor should be mounted with a pull-down resistor of 1K? to 10K? for stability and precision. • A label on top of each LED must display ON/OFF depending on the state of the LED. • A label representing the decimal value decoded from the state of the LEDs must be written as an example: "DECIMAL VALUE: 0" when all LEDs are OFF. • Display the temperature in a specific box with a label on top of the temperature value written "Temperature". The program should run smoothly with no overlapping in display The design of the system and the colors are your choices.

View Answer
divider
INSTANT ANSWER

Question 3 [20 Marks] Assuming the following five (5) processes P1, P2, P3, P4 and P5 are currently in the ready state with the Arrival time, burst times and priorities as shown in the table below. \begin{tabular}{|l|c|c|c|} \hline Process & Arrival time & Burst time (ms) & Priority \\ \hline \end{tabular} \( \nabla \) Edit with WPS Office NOTE: - Lower numbers represent higher priority and a \( 4 \mathrm{~ms} \) quantum time is given Indicating the sequence and time the processes will be scheduled for execution, draw the Gantt chart for each of the following scheduling algorithms. 3.1 First Come First Serve [3 Marks] 3.2 Shortest Job First (Non Pre-emptive) [4 Marks] 3.3 Shortest Job First (Pre-emptive) \( [4 \) Marks] 3.4Priority (Pre-emptive) [4 Marks] 3.5Round Robin [5 Marks] Question 4 [10 Marks] Consider a multilevel feedback queue scheduling with three queues, numbered as Q1, Q2, and Q3. The scheduler first executes processes in Q1, which is given a time quantum of 2 milli-seconds. If a process does not finish within this time, it is moved to the tail of the Q2. The scheduler executes processes in \( \mathrm{Q} 2 \) only when \( \mathrm{Q} 1 \) is empty. The process at the head of the \( Q 2 \) is given a quantum of 4 milli-seconds. If it does not \( \nabla \cdot \) Edit with WPS Office

View Answer
divider