Skip to content

Part 1 Threads : Priority Scheduling #6

@xi-jjun

Description

@xi-jjun

Overview

video link : https://www.youtube.com/watch?v=myO2bs5LMak

Goal

PintOS uses FIFO scheduling. Modify PintOS scheduler for priority scheduling.

  • sort the ready list by the thread priority
  • sort the wait list for synchronization primitives (semaphore, condition variable)
  • implement the preemption
    • point : when the thread is put into the ready list (not everytime when the timer interrupt is called)

Files to modify

  • threads/thread.*
  • threads/synch.*

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions