Skip to content
Menu
Timeless College
  • Alex Cavazzoni
  • Art Classes Near Me
  • AWS Training in Virginia
  • Bad Influence On Children
  • BROWZ safety compliance
  • Clarence McClendon
  • Digital Marketing Consultancy Kelowna
  • Freedom of speech on social media
  • Https://timelesscollege.xyz/
  • Https://timelesscollege.xyz/ – Timelesscollege.xyz
  • Https://www.timelesscollege.xyz/
  • Https://www.timelesscollege.xyz/ – Timelesscollege.xyz
  • In Home Tutoring
  • Integrated Atpl
  • Jewish Intimacy
  • Learn to play guitar online
  • Online Baseball Hitting Trainer
  • Prince George School
  • Quickbooks Classes
  • Sample Page
  • Schreibwettbewerb
  • STOCKS CRYPTO FOREX Trading
  • Timeless College
  • Timeless College – Timelesscollege.xyz
  • Timelesscollege.xyz/
  • Timelesscollege.xyz/ – Timelesscollege.xyz
  • Training as a Pilot
  • Website Creation Atlanta
Timeless College
functionality of threading system in Pintos – My Assignment Tutor

functionality of threading system in Pintos – My Assignment Tutor

November 5, 2021 by B3ln4iNmum

CIS 545 Project 2 (Due Oct. 27)Fall 2021 In this project, your tasks are to extend the functionality of threading system in Pintos (CSU version). To uncompress and extract the source code of Pintos (CSU version), login a Linux workstation in our Linux cluster and type tar xvf z-cis345s/pub/pintos_csu.tar.gz You will he working primarily in the ‘threads’ directory for this assignment, with some work in the ‘devices’ directory on the side. Compilation should be done in the ‘threads’ directory. The Pintos reference material can be found in: -cis345s/pub/PintosCSU_Ref .pdfTask 1: Efficient Alarm Clock In Pintos, threads may call this function to put themselves to sleep: /** * This function suspends execution of the calling thread until time has * advanced by at least x timer ticks. Unless the system is otherwise idle, * thread need not wake up after exactly x ticks. Just put it on the ready queue * after they have waited for the right number of ticks. The argument to * timer_sleep() is expressed in timer ticks, not in milliseconds or any another * unit. There are TIMER_FREQ timer ticks per second, where TIMER_FREQ is a * constant defined in devices/timer.h (spoiler: it’s 100 ticks per second). */ void timer_sleep (int64_t ticks); timer_sleep 0 is useful for threads that operate in real-time (e.g. for blinking the cursor once per second). The current implementation of timer_sleep() is inefficient, because it calls thread_yield() in a loop until enough time has passed. Your task is to re-implement timer_sleep() so that it executes efficiently without any “busy waiting”. That is, your implementation has to use an ordered list so that any thread calling timer_sleep() will be inserted to the list until its timer expires. The thread’s state has be changed to THRD_SLEEP when it is in the sleeping list. Task 2: Basic Priority SchedulingIn Pintos, each thread has a priority value ranging from 0 (PRIO_MIN) to 63 (PRIO_MAX). However. the current scheduler does not respect these priority values. You must modify the scheduler so that higher-priority threads always run before lower-priority threads. You must also modify the two Pintos synchronization primitives (lock and semaphore), so that these shared resources prefer higher-priority threads over lower-priority threads. A thread may set its own priority by calling thread_set_priority(int new_priority) and get its own priority by calling thread_get_priority(). If a thread no longer has the highest priority (e.g. it called thread_set_priority0 with a low value, it released a lock, or incremented semaphore value), it must immediately yield the CPU to the highest-priority thread.Scanned with CamScanner

  • Assignment status: Already Solved By Our Experts
  • (USA, AUS, UK & CA PhD. Writers)
  • CLICK HERE TO GET A PROFESSIONAL WRITER TO WORK ON THIS PAPER AND OTHER SIMILAR PAPERS, GET A NON PLAGIARIZED PAPER FROM OUR EXPERTS
QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • What are the elements of the Receiver’s marketing strategy (i.e., its positioning and target market) in 2018?
  • The following resource is required for this Career Starters assignment: – Free Nursing Tutor – Essay Blazers
  • This week, we will learn about trigonometric functions and trigonometry. – Free Nursing Tutor – Essay Blazers
  • In this assignment you will review a case that deals – Free Nursing Tutor – Essay Blazers
  • Your assignment is to find a YouTube video presenting a – Free Nursing Tutor – Essay Blazers

Recent Comments

  • A WordPress Commenter on Hello world!

Archives

  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021

Categories

  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2022 Timeless College | Powered by WordPress and Superb Themes!