[go: up one dir, main page]

0% found this document useful (0 votes)
8 views12 pages

Os Project Report

The document outlines a project for a web-based Real-Time Operating System (RTOS) simulator designed for wearable devices, allowing users to simulate task scheduling and execution. It includes user and admin panels for task management, real-time process tracking, and utilizes the Rate Monotonic Scheduling (RMS) algorithm. The project aims to enhance understanding of RTOS concepts and has potential future developments such as backend integration and support for real hardware devices.

Uploaded by

VßhV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views12 pages

Os Project Report

The document outlines a project for a web-based Real-Time Operating System (RTOS) simulator designed for wearable devices, allowing users to simulate task scheduling and execution. It includes user and admin panels for task management, real-time process tracking, and utilizes the Rate Monotonic Scheduling (RMS) algorithm. The project aims to enhance understanding of RTOS concepts and has potential future developments such as backend integration and support for real hardware devices.

Uploaded by

VßhV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Real Time OS for Wearable Devices

INTERNAL INVENTOR(S)/ STUDENT(S):


Full name Bharat Kumar
Mobile Number 9729024316
Email (personal) bharatkumar19030@gmail.com
Registration number 12319030
Address of Internal Lovely Professional University, Punjab-144411,
Inventors India

Full name Sumit Kumar


Mobile Number 9905517360
Email (personal) sk9705589@gmail.com
Registration number 12325278
Address of Internal Lovely Professional University, Punjab-144411,
Inventors India

Full name Manoj Kumar Reddy


Mobile Number 8886376520
Email (personal) kumar696946@gmail.com
Registration number 12322156
Address of Internal Lovely Professional University, Punjab-144411,
Inventors India
1. Project Overview
The RTOS simulator for wearable devices is a web-based application
that allows users to simulate task scheduling and execution within a
real-time operating system environment. It enables users to select
tasks, monitor their execution, and manage their scheduling in real-
time. Additionally, administrators can modify task deadlines
dynamically.
2. Module-Wise Breakdown
User Panel
 Allows users to select tasks such as viewing time, listening to
music, monitoring heartbeat, attending calls, and sending
messages.
 Tasks are added to the queue and scheduled accordingly.
Process Display
 Displays ongoing, queued, and completed tasks in real time.
 Users can see task execution statuses dynamically.
Admin Panel
 Provides administrators with the ability to modify task
deadlines.
 Ensures task prioritization based on execution requirements.
3. Functionalities
 Task selection and execution.
 Task prioritization and scheduling.
 Real-time process tracking (ongoing, queued, completed tasks).
 Admin functionality to modify task deadlines dynamically.
4. Technology Used
Programming Languages:
 HTML, CSS (TailwindCSS), JavaScript
Libraries and Tools:
 TailwindCSS for UI styling
 JavaScript for task scheduling and process management
Other Tools:
 GitHub for version control
5. Flow Diagram
(Include a graphical flow diagram showcasing the process flow from
task selection to execution and completion.)
6. Revision Tracking on GitHub
 Repository Name: [Insert Repository Name]
 GitHub Link: [Insert Link]
7. Conclusion and Future Scope
Conclusion:
The RTOS simulator successfully demonstrates real-time task
execution and scheduling for a wearable device environment. It
provides both user and admin functionalities, making it an effective
educational tool for understanding RTOS concepts.
Future Scope:
 Integration with a backend for persistent task management.
 Enhancing task prioritization algorithms.
 Extending the simulator to support real hardware devices.
8. References
Rate Monotonic Scheduling (RMS) is a fixed-priority scheduling
algorithm used in real-time operating systems (RTOS) for scheduling
periodic tasks. It is a preemptive and optimal scheduling algorithm
for periodic tasks with static priorities assigned based on their
frequency.
Key Concepts of Rate Monotonic Scheduling (RMS)
1. Fixed-Priority Scheduling
o Each task is assigned a static priority based on its period.
o The shorter the period (higher frequency), the higher the
priority.
2. Preemptive Scheduling
o A higher-priority task can interrupt a lower-priority task.
o Ensures that critical tasks meet their deadlines.
3. Optimality
o RMS is optimal for fixed-priority scheduling, meaning if a
task set can be scheduled with fixed priorities, RMS will be
able to schedule it.

Appendix
A. AI-Generated Project Elaboration/Breakdown Report
This project is a web-based Real-Time Operating System (RTOS)
Simulator for wearable devices. It allows users to select tasks to
execute based on the Rate Monotonic Scheduling (RMS) algorithm.
The platform also provides an Admin Panel to modify task deadlines
dynamically.
Features
 User Panel for task selection.
 Admin Panel for modifying task deadlines.
 Dynamic task scheduling using Rate Monotonic Scheduling
(RMS) algorithm.
 Real-time display of:
o Ongoing Processes
o Queued Processes
o Completed Processes
Setup Instructions
1. Clone the repository. git clone <repository_url> cd
<repository_folder>
2. Open the index.html file directly in your browser.
How to Use the Simulator
User Panel
1. Select the desired tasks by checking the corresponding
checkboxes:
o See Time
o Listen to Music
o Monitor Heartbeat
o Attend Phone Call
o Send Message
2. Click the "Start Tasks" button to begin task execution.
3. Tasks will be displayed in the following sections:
o Ongoing Processes
o Queued Processes
o Completed Processes
Admin Panel
1. Select a task from the dropdown list.
2. Enter the new deadline in milliseconds.
3. Click the "Add/Change Task Deadline" button to update the
task's deadline.
Task Details (Default Deadlines)

Task Name Default Deadline (ms)

See Time 500 ms

Listen to Music 800 ms

Monitor Heartbeat 400 ms

Attend Phone Call 700 ms

Send Message 600 ms

Troubleshooting
 If tasks are not displayed correctly:
o Ensure all file paths are correctly referenced in the HTML.
o Check the console log for JavaScript errors.
 For delayed execution, verify the deadline values entered in the
Admin Panel.

B. Problem Statement:
The project aims to create a real-time operating system simulator for
wearable devices, allowing users to execute tasks dynamically and
manage scheduling constraints efficiently.
C. Solution/Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>RTOS Simulator</title>
<script src="https://cdn.tailwindcss.com"></script>
<!-- <link rel="stylesheet" href="../output.css"/> -->
</head>
<body class="bg-gray-100 ">
<div class="bg-blue-950 p-4 mb-4 flex justify-center items-center">
<h1 class="text-3xl font-bold text-center text-white">
Wearable Device RTOS Simulator
</h1>
</div>
<div class="max-w-4xl mx-auto ">

<div>
<!-- class="grid grid-rows-2 gap-4"> -->

<!-- User Page -->


<div class="bg-white p-4 shadow-md rounded-lg">
<h2 class="text-xl font-semibold mb-2">User Panel</h2>
<div>
<label class="block mb-2">Select Tasks </label>
<div id="userTasks"class=" flex flex-col gap-2 mb-2">
<label for="taskTime" class="block bg-blue-100 px-8 p-2
rounded-xl hover:bg-blue-200">
<input type="checkbox" name="taskTime"
id="taskTime" value="time"> See Time<br>
</label>
<label for="taskMusic" class="block bg-blue-100 px-8 p-
2 rounded-xl hover:bg-blue-200">
<input type="checkbox" id="taskMusic"
value="music"> Listen to Music<br>
</label>
<label for="taskHeartbeat" class="block bg-blue-100 px-
8 p-2 rounded-xl hover:bg-blue-200">
<input type="checkbox" id="taskHeartbeat"
value="heartbeat"> Monitor Heartbeat<br>
</label>
<label for="taskCall" class="block bg-blue-100 px-8 p-2
rounded-xl hover:bg-blue-200">
<input type="checkbox" id="taskCall" value="call">
Attend Phone Call<br>
</label>
<label for="taskMessage" class="block bg-blue-100 px-8
p-2 rounded-xl hover:bg-blue-200">
<input type="checkbox" id="taskMessage"
value="message"> Send Message<br>
</label>
</div>
<div class="flex items-center justify-center">
<button onclick="selectTasks()" class="cursor-pointer
mx-auto bg-blue-900 text-white px-4 py-2 rounded-xl">Start
Tasks</button>
</div>
</div>
</div>
</div>
<!-- Process Display -->
<div class="bg-white p-4 shadow-md rounded-lg mt-4">
<h2 class="text-xl font-semibold mb-2">Process Display</h2>
<div id="ongoing-processes" class="bg-green-100 p-2 rounded
mb-2">
<h3 class="font-medium">Ongoing Processes:</h3>
<ul id="ongoing-list"></ul>
</div>
<div id="queued-processes" class="bg-yellow-100 p-2 rounded
mb-2">
<h3 class="font-medium">Queued Processes:</h3>
<ul id="queued-list"></ul>
</div>
<div id="completed-processes" class="bg-blue-100 p-2
rounded">
<h3 class="font-medium">Completed Processes:</h3>
<ul id="completed-list"></ul>
</div>
</div>
<!-- <div class="bg-white p-4 shadow-md rounded-lg w-full my-4
flex flex-col gap-4 justify-center items-center"> -->
<!-- <div class="text-3xl">Go to Admin Panel to change the
process deadlines</div> -->
<div class="bg-white p-4 shadow-md rounded-lg my-4">
<h2 class="text-xl font-semibold mb-2">Admin Panel</h2>
<div id="admin-panel">
<label class="block mb-2">Select Task to Change
Deadline</label>
<select id="adminTask" class="border p-2 w-full mb-2">
<option class=" bg-green-
100" value="time">Select</option>
<option value="music">Listen to Music</option>
<option value="heartbeat">Monitor Heartbeat</option>
<option value="call">Attend Phone Call</option>
<option value="message">Send Message</option>
</select>
<input type="number" id="taskDeadline"
placeholder="Deadline (ms)" class="border p-2 w-full mb-2">
<button onclick="addTask()" class="bg-blue-900 text-white
px-4 py-2 rounded-xl">Add/Change Task Deadline</button>
</div>
</div>
<!-- <button class="min-w-52 bg-green-800 p-2 rounded-xl
text-white"><a href="admin.html">Admin</a></button> -->
<!-- </div> -->
</div>

<script src="script.js"></script>
</body>
</html>

You might also like