GithubHelp home page GithubHelp logo

oscollaboration's Introduction

oscollaboration's People

Contributors

kumdo0327 avatar lth9898 avatar

Watchers

 avatar

oscollaboration's Issues

scheduling ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํ…Œ์ŠคํŠธ

waiting queue์˜ ๋ณ€๊ฒฝ์œผ๋กœ ์ฝ”๋“œ ์ˆ˜์ •์ด ํ•„์š”ํ•ด์„œ
๊ธฐ์กด ์ฝ”๋“œ๋ฅผ ํ† ๋Œ€๋กœ ์ˆ˜์ •๋œ scheduling ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์™„์„ฑ

๊ฐ์ž test case๋“ค๋กœ scheduler๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•˜๋Š” ์ง€ ํ™•์ธ

Round-Robin scheduling

ํ•ด๋‹น test case์—์„œ ์˜ค๋ฅ˜
pid ๋„์ฐฉ์‹œ๊ฐ„ busrt priority
P1 0 3 0
P2 1 1 0

๋ฌธ์ œ ์›์ธ ->
time์„ tq๋งŒํผ ์ฆ๊ฐ€ -> P1์˜ burst ์ข…๋ฃŒ๊ฐ€ P2์˜ arrival time๋ณด๋‹ค ๋Šฆ์–ด๋„ waiting queue์˜ Top์ด ๋œ๋‹ค

Preemptive scheduling ๋ฌธ์ œ

  1. delta๊ฐ€ int๊ฐ€ ์•„๋‹Œ double ํƒ€์ž…์œผ๋กœ

  2. ํ•ด๋‹น test case์—์„œ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•˜์ง€ ์•Š์Œ
    pid ๋„์ฐฉ์‹œ๊ฐ„ busrt priority
    P1 0 10 3
    P2 1 28 2
    P3 2 6 4
    P4 3 4 2
    P5 4 14 2

๋ฌธ์ œ ์›์ธ -> ์šฐ์„ ์ˆœ์œ„๊ฐ€ ๊ฐ™์„ ๋•Œ preemptive ๋ฐœ์ƒ

๋ณ€๊ฒฝํ•ด์•ผํ•  ๊ฒƒ๋“ค (6๊ฐœ ์™„๋ฃŒ) 6/6

(์™„๋ฃŒ) 1. process queue์˜ prioirty queue๊ฐ€ arrival time์ด ๊ฐ™์„ ๋•Œ ์„ ์ž…์„ ์ถœ๋„ ๋™์ž‘ํ•˜์ง€ ์•Š์Œ --> STL priority queue ๋Œ€์‹  ์ž์ฒด์ ์œผ๋กœ ์ƒ์„ฑํ•œ process queue ๊ฐ์ฒด ์‚ฌ์šฉ
(์™„๋ฃŒ) 2. lowerWindow์— drag ๊ธฐ๋Šฅ ์ถ”๊ฐ€
(์™„๋ฃŒ) 3. ํŒŒ์ผ ์ž…์ถœ๋ ฅ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
(์™„๋ฃŒ) 4. ์‹คํ–‰ ์ข…๋ฃŒ ์‹œ ํ‘œ์‹œ๋˜๋Š” ๊ฒฐ๊ณผ์ฐฝ ์ถ”๊ฐ€
(์™„๋ฃŒ) 5. ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ณ„ ์„ฑ๋Šฅ๋น„๊ต ๊ธฐ๋Šฅ ์ถ”๊ฐ€
(์™„๋ฃŒ) 6. process queue ์ƒ์„ฑ ์‹œ ์ค‘๋ณต๋˜๋Š” PID ๊ฒ€์‚ฌ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.