Find Jobs
Hire Freelancers

Efficient alarm clock.

₹600-1500 INR

Lukket
Slået op cirka 2 år siden

₹600-1500 INR

Betales ved levering
Efficient alarm clock in pintos, and threads in C language. Task: 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, the * 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 * 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() 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 THR_SLEEP when it is in the sleeping list. Please go through the file attached for detailed elaboration.
Projekt-ID: 33193252

Om projektet

2 forslag
Projekt på afstand
Aktiv 2 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
2 freelancere byder i gennemsnit ₹8.250 INR på dette job
Brug Avatar.
Hello... I am interested
₹15.000 INR på 7 dage
5,0 (241 anmeldelser)
7,1
7,1
Brug Avatar.
I am interested in this project and it is best match with my expertise. Top skills: C language, python Let me know if you are interested
₹1.500 INR på 7 dage
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for INDIA
Hyderabad, India
5,0
1
Betalingsmetode verificeret
Medlem siden apr. 15, 2021

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.