CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2491|Reply: 17

Real Time Scheduling Algorithm

[Copy link]
Post time 23-7-2008 03:05 PM | Show all posts |Read mode
Sapa2 boleh tolong haku pasal algorithms seperti yang dibawah?

1.Round robin
2.Cyclic Executive
3.Rate Monotonic
4.Bin Packing

Semua dalam JAVA..

haku akan kasi +200 untuk sesiapa yg boleh beri cth2 untuk setiap algorithm
Reply

Use magic Report


ADVERTISEMENT


Post time 24-7-2008 09:12 AM | Show all posts

Reply #1 lonely_surina's post

klau soklan exam sah2 la aku skip bab nih
Reply

Use magic Report

 Author| Post time 24-7-2008 11:48 AM | Show all posts
bukan exam yang...
baru nak study guna menda alah neh...
tak faham n tak reti...
patut la saapa2 yg masTER java gaji besar...
haku nak jugak gaji besarrrr...
boss haku suh study menda alah neh dulu...
Reply

Use magic Report

 Author| Post time 24-7-2008 11:50 AM | Show all posts
tolong la haku yg tak tahu neh
Reply

Use magic Report

Post time 24-7-2008 12:51 PM | Show all posts
nice view...
Reply

Use magic Report

Post time 26-7-2008 09:08 AM | Show all posts
Untuk round-robin tu dah ada explaination dalam wikipedia siap contoh lagi:

http://en.wikipedia.org/wiki/Round-robin_scheduling

"Round-robin (RR) is one of the simplest scheduling algorithms for processes in an operating system, which assigns time slices to each process in equal portions and in order, handling all processes without priority. Round-robin scheduling is both simple and easy to implement, and starvation-free. Round-robin scheduling can also be applied to other scheduling problems, such as data packet scheduling in computer networks.

Example: The time slot could be 100 milliseconds. If a job1 takes a total time of 250ms to complete, the round-robin scheduler will suspend the job after 100ms and give other jobs their time on the CPU. Once the other jobs have had their equal share (100ms each), job1 will get another allocation of CPU time and the cycle will repeat. This process continues until the job finishes and needs no more time on the CPU.

    * Job1 = Total time to complete 250ms (quantum 100ms).

   1. First allocation = 100ms.
   2. Second allocation = 100ms.
   3. Third allocation = 100ms but job1 self-terminates after 50ms.
   4. Total CPU time of job1 = 250ms.
"
Reply

Use magic Report

Follow Us
 Author| Post time 26-7-2008 10:11 AM | Show all posts
alus, su tahu yg tu..
cuma su nak fahamkan mengenai coding2 untuk 4 jenis algorithgm neh...
susah betul la menda alah neh...
ke haku yg bodo?
berkat dok panggil paklah bodolah gamaknya
tolong2 la haku ini...
tolong TERangkan setiap coding unt 4 algorithgmm neh
Reply

Use magic Report

Post time 26-7-2008 10:13 AM | Show all posts

Reply #7 lonely_surina's post

OOOOO i see! aku rasa ko sebenarnya nak design algorithm tu guna OO teknik ye su?
Reply

Use magic Report


ADVERTISEMENT


 Author| Post time 26-7-2008 01:41 PM | Show all posts
Originally posted by alusmetai at 26-7-2008 10:13 AM
OOOOO i see! aku rasa ko sebenarnya nak design algorithm tu guna OO teknik ye su?


haa laaa wehhhh
haku tak nampak lagi apa yg boleh haku buat guna 4 menda alah neh...
Reply

Use magic Report

Post time 26-7-2008 08:15 PM | Show all posts

Balas #9 lonely_surina\ catat

panjang ceritanya ni nanti su! Start dengan identify objek-objek dalam Round Robin tu eg: masa, slots. terpulang kepada sehalus/sedetail mana design yg su nak. Tahap kedalaman tu banyak bergantung kepada objektif utama. Su boleh letak seluruh algorithm tu dalam satu method dipanggil Round Robin yang menerima parameter jenis 'double' atau 'int' atau 'Object' bergantung kepada tahap kehalusan design su. Kalau aku, aku akan letak Round Robin dalam satu package/library aku namakan sbg Scheduler dan aku akan design dia as generic as possible supaya aku boleh guna RR tu nanti bukan aje untuk allocate masa untuk proses OS, tapi juga untuk domain problem yang lain. Cuba tengok design round robin yang lecturer ni buat untuk course univ. http://lass.cs.umass.edu/~shenoy ... labs/lab2_help.html

[ Last edited by  alusmetai at 26-7-2008 08:27 PM ]
Reply

Use magic Report

 Author| Post time 29-7-2008 10:07 AM | Show all posts
alus, kalo su letak 4 algorithm dalam satu design neh tak rumit ke?
ke kena satu algo satu design?

korang yg terror java neh apply la gaji besar2...
bukan senang nak faham, haku TERkaput2 nak faham menda alah neh
Reply

Use magic Report

Post time 29-7-2008 02:01 PM | Show all posts
apsal java?knp x c++?
Reply

Use magic Report

 Author| Post time 29-7-2008 06:40 PM | Show all posts
Originally posted by otai_g at 29-7-2008 02:01 PM
apsal java?knp x c++?


da boss sokak java...
susah sengal haku nak faham
Reply

Use magic Report

Post time 29-7-2008 09:29 PM | Show all posts
Originally posted by lonely_surina at 29-7-2008 10:07 AM
alus, kalo su letak 4 algorithm dalam satu design neh tak rumit ke?
ke kena satu algo satu design?

korang yg terror java neh apply la gaji besar2...
bukan senang nak faham, haku TERkaput2 na ...


Kalau su dah design building blocks dia elok-elok, bolehlah guna utk 4 algorithms tu, contohnya objek "Process" boleh aje guna design yang sama untuk RR, CE, BP atau RM tu.

Aku rasa bos su guna Java sebab dia nak cepat la tu. Java dah ada built-in multithreading support yang boleh guna untuk semua platform OS, tak macam C++. Aku nampak multithreading ni kena guna dalam assignment su ni. Jadi jimat masa dengan design dan tulis code.
Reply

Use magic Report

Post time 29-7-2008 09:31 PM | Show all posts

Balas #13 lonely_surina\ catat

mulakanlah dengan bismillah.
Reply

Use magic Report

 Author| Post time 30-7-2008 09:44 AM | Show all posts
ni bukan assignment...
ni unt kerja..
bos su suh tunjuk kat dia aplikasi java neh..
boleh alus tolong tunjuk kat mana selain round robin?
gaji ko mesti besar kan alus...
TERrer banget pasal java...
su mmg tak nampak sangat...
tgh study sket2..
Reply

Use magic Report


ADVERTISEMENT


Post time 30-7-2008 06:11 PM | Show all posts
Su nak guna algo tu untuk buat apa?
Reply

Use magic Report

Post time 5-8-2008 08:40 PM | Show all posts
aku tak leh nak tolong aaa..aku pun fail gak bab2 nih
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

12-2-2025 12:32 AM GMT+8 , Processed in 0.187447 second(s), 30 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list