CPU Scheduling Algorithms

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 163

  • @ynhs_rosal
    @ynhs_rosal 10 лет назад +16

    Thank you for the source code. You just have save me from failing on my OS subject.

    • @jca398
      @jca398 8 лет назад

      Hi Ynah :) can you pls send me to broombroomm@gmail.com the project of this program thank you :D

    • @minachan7612
      @minachan7612 7 лет назад

      can you send me the source code ? please.... :( I really need it. I have to pass my project Round robin scheduling using vb.net

    • @gintaro9618
      @gintaro9618 7 лет назад

      hi could you send me the project also? email is philathist@gmail.com thank you

    • @mayasharma9331
      @mayasharma9331 7 лет назад

      please mail the the source code at mayasharmafc@gmail.com
      plz mail and save me too from failing

    • @pranitbhoir2167
      @pranitbhoir2167 7 лет назад

      maya sharma can u tell me where this source code run plss.even i also have project on this topic😄

  • @lapnghiepshopee
    @lapnghiepshopee 6 лет назад +3

    after learning about thread in java, I realized that we cannot update UI in swing in another thread because components are not thread safe. So, you must use this code if you want to execute this program: replace your simulate method's code by
    //while(!Simulation.Finished){
    new Thread(new Runnable() {
    public void run() {
    while(!Simulation.Finished){
    // Runs inside of the Swing UI thread
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    nextStepBttnActionPerformed(null);
    System.out.println("nguyen thanh tai");
    }
    });
    try {
    java.lang.Thread.sleep(1000);
    }
    catch(Exception e) {
    }
    }

    }
    }).start();
    // }
    Simulation.Stoped = false; // start the simulation
    simulateBttn.setEnabled(false);
    stopBttn.setEnabled(true);
    nextStepBttn.setEnabled(false);

  • @macmovies6607
    @macmovies6607 2 года назад +1

    what about c# CPU scheduling

  • @mahmoudragab1528
    @mahmoudragab1528 9 лет назад +1

    الف شكر ي هندسة والله
    تسلم ايدك وربنا يكرمك

  • @pulidasharsha4628
    @pulidasharsha4628 4 года назад

    How to test or present this application using src code link that you mentioned.

  • @cloudy1170
    @cloudy1170 6 лет назад +1

    i have zero idea on java but i just wanna see how to simulate this so i downloaded the full java project but i dont know how to run it :-( plz help

    • @ahmed.elmowafy
      @ahmed.elmowafy  6 лет назад

      You need to install java, then run the jar file

    • @cloudy1170
      @cloudy1170 6 лет назад

      thanks for the response, do i have to download that separately from the full project?

    • @ahmed.elmowafy
      @ahmed.elmowafy  6 лет назад

      www.java.com/en/download/

    • @crystalsecrets6791
      @crystalsecrets6791 6 лет назад

      Ahmed Elmowafy how do i open the project in java? There are errors when i open the .java files from the project

    • @ahmed.elmowafy
      @ahmed.elmowafy  6 лет назад

      You can download the full java project in the description

  • @cartetrix4297
    @cartetrix4297 5 лет назад

    because the bars with the colors do not appear to me

  • @hamletdimerquibalcarceldia6094
    @hamletdimerquibalcarceldia6094 3 года назад

    Thanks so much

  • @likecoding867
    @likecoding867 8 лет назад +9

    Hi, I had downloaded the complete project from the description but when I try to run the program from Netbeans , the Gantt Chart & Ready Queue not running after 'Simulate' button pressed. However, if you press 'finish' button, the Gantt Chart only display. Any bugs on the program ?

    • @bpaltezo6472
      @bpaltezo6472 7 лет назад

      i have the same problem. @Ahmed Elmowafy please help us

    • @studyhub3810
      @studyhub3810 6 лет назад

      does you got solution

    • @studyhub3810
      @studyhub3810 6 лет назад

      hi u got solution?

    • @studyhub3810
      @studyhub3810 6 лет назад

      then too it is not working

    • @priyankasrivastava6942
      @priyankasrivastava6942 6 лет назад

      i have the same problem, sir please could you help with this?? the Gantt Chart & Ready Queue not running after 'Simulate' button pressed. However, if you press 'finish' button, the Gantt Chart only display. Please help out sir.

  • @christianbotio529
    @christianbotio529 4 года назад

    Why my gantt chart is stock and when i hit finish the simulation done

    • @ahmed.elmowafy
      @ahmed.elmowafy  4 года назад

      I think the multi-threading part doesn't work correctly on newer java versions.

  • @johnwicker4362
    @johnwicker4362 5 лет назад

    Hi, the Simulate Button is not working, I tried to manipulate the simulation method but I got no luck. Can you please provide me what solutions for this? just like the video you have showed thanks a lot.

  • @akabhishekushwaha
    @akabhishekushwaha 2 месяца назад

    Bhayi kese bnaye ho help chahiye project me

  • @jaypakhadiwala1037
    @jaypakhadiwala1037 7 лет назад

    Hey your Code is well but my problem is there in main function "face" extends cpu but there is no show function there is only show method have there.? and the query face and AppData have main function but there is only exception i want to know where is main function actually calls.. any specific file..??

  • @ynhs_rosal
    @ynhs_rosal 10 лет назад

    How can I solve this error?
    Exception in thread "main" java.lang.NullPointerException
    at javax.swing.ImageIcon.(Unknown Source)
    at cpu.Face.initComponents(Face.java:673)
    at cpu.Face.(Face.java:23)
    at cpu.CPU.main(CPU.java:11)

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      Did you download the complete java project?
      www.mediafire.com/download/8atbafplo17drl1/CPU.rar

    • @ynhs_rosal
      @ynhs_rosal 10 лет назад

      what is the main class set

    • @ynhs_rosal
      @ynhs_rosal 10 лет назад

      omg it's working thank you... :)
      maybe i didn't download it right

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      Ynah Carrielle Umayam
      
      CPU.Face

    • @michikoscodes9147
      @michikoscodes9147 9 лет назад

      +Ahmed Elmowafy, excuse me sir, where could i find Cpu.Face?

  • @eunago8491
    @eunago8491 7 лет назад

    Good Evening everybody I noticed that when I clicked Simulate Gantt Chart and the ready queue doesn't run ...do you have any idea how to fix it?

  • @gretheleinsteinbernardino438
    @gretheleinsteinbernardino438 8 лет назад

    Nice work Sir! Just wondering if you have a program simulation in Disk Scheduling? Thanks for your time!

  • @safiratanty537
    @safiratanty537 4 года назад

    I want to ask, I have already run the face.java, but it doesn't work as in the video, what the solution?
    thank in advanve

    • @ahmed.elmowafy
      @ahmed.elmowafy  4 года назад

      I think CPU.java is the project entry point. I recommend downloading the complete java project.

    • @safiratanty537
      @safiratanty537 4 года назад

      @@ahmed.elmowafy cpu.java like face.java, simulate button doesn't work like in the video. and I have downloaded the full java project in the description box. please the solution

    • @ahmed.elmowafy
      @ahmed.elmowafy  4 года назад

      @@safiratanty537 It seems that you need to debug it. For its worth, the simulate button acts like pushing the "next step" button repeatedly.

  • @arnabbiswas8414
    @arnabbiswas8414 4 года назад

    Can you please tell me why isn't the simulation animation coming.. After I select finish it shows the entire gnatt chart together!

  • @ARAMAUGUST
    @ARAMAUGUST 10 лет назад

    رائع جدااااااااااااااااااااا

  • @ryanjosef8093
    @ryanjosef8093 7 лет назад

    Good day!
    I just ask, why in RR need to input the priority? Coz in our lesson it is just the burst time, arrival time and quantum slice.

    • @ahmed.elmowafy
      @ahmed.elmowafy  7 лет назад

      Here in this program, we use the same data with all of the algorithms to be able to see the difference between them in action. so if RR doesn't need priority, it won't use it.

    • @mdshafi7043
      @mdshafi7043 3 года назад

      @@ahmed.elmowafy can you give me the complete java project jar file? I tried to enter the webpage. but the webpage has been blocked . Please send me the the java jar file. I need it for my OS project

  • @arshiamughal7923
    @arshiamughal7923 7 лет назад

    i dont undestnd how to do my job.... it is tough to undstnd for me ....whr to write the code nd whr to run on simulator plxx xplain

  • @afiffadhlullah6217
    @afiffadhlullah6217 6 лет назад

    can u help me to show which part that i should change, if i have 10 process

    • @ahmed.elmowafy
      @ahmed.elmowafy  6 лет назад

      Sorry, the code is hard coded to have 8 jobs.
      you can change that in "Items/Cell.java" though

  • @mayasharma9331
    @mayasharma9331 7 лет назад

    hello sir im not getting the source code the link you provided is disabled.
    plz help me out.....

  • @bpaltezo6472
    @bpaltezo6472 7 лет назад

    simulate button doesn't work. how can i fix it?

  • @yusukeurameshi733
    @yusukeurameshi733 5 лет назад

    hi..i just want to ask, i already downloaded the source code of this project and already run it at netbean. but the problem is when i try to execute it it will not run automatically. what do you think is the problem??
    thank you in advance for answering this question.

    • @hiluu
      @hiluu Год назад

      did you fix it? when i click smilation button it don't run but when i click finish button it shows the gantt chart result.

  • @hiroshitetsuya2789
    @hiroshitetsuya2789 4 года назад

    I have a question if the quantum is fake ? No use bruh

    • @ahmed.elmowafy
      @ahmed.elmowafy  4 года назад

      I think the multi-threading part doesn't work correctly on newer java versions.

    • @hiroshitetsuya2789
      @hiroshitetsuya2789 4 года назад

      :( how can i solve it?

  • @arquielarvins.corbeta4105
    @arquielarvins.corbeta4105 5 лет назад

    I open it on netbeans but the gant chart didnt run pls reply..

  • @saif-wb7be
    @saif-wb7be 6 лет назад

    Dear Ahmed, Can you help me with the Round Robin programming in Matlab?

  • @Dearth123
    @Dearth123 9 лет назад

    Hi, thanks for sharing this :). I'm having problems adding my own data in the "job pool". I do the following: file->add my data->write some values between ur contraints->load. But it just assign random values. Is it possible to fix this? Thanks :)

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      +Ap0c4 I tried it and it works normally for me.
      Could you please give me the data you're trying to use?

    • @Dearth123
      @Dearth123 9 лет назад

      Thanks for replying :). It doesn't work with any value at all; for example, after starting the program, i do the following: file, add my data,
      arrive burst priority
      0 0 0
      5 9 0
      11 3 0
      12 10 0
      and then i press load, but the job pool remains empty. I'm using Linux Mint KDE, running the jar file via "Konsole", with this java version:
      java version "1.7.0_79"
      OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
      Also, "Simulate" button doesn't do anything.
      Ps. I tried "sudo java -jar CPU.jar" and java on windows 8.1 but nothing changes. Going to recompile the whole project

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      +Ap0c4
      program doesn't accept 0 in priority

    • @Dearth123
      @Dearth123 9 лет назад

      +Ahmed Elmowafy oh okay, thanks :)

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      +Ap0c4
      if job has one or more invalid data it will be ignored by the program :(
      it's a program not a software so don't expect it to be user friendly.

  • @imiko11
    @imiko11 10 лет назад

    salam,
    hello sir, i have a question can this program able to simulate more than 100 of jobs?
    where can i change the num job of task in the coding?
    thanks again sir.

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      As specified here : github.com/Mowafy/CPU-Schedualing-Algorithms-Simulator/blob/master/src/cpu/MainQueue.java number of jobs is an integer number so it can take up to 2 billion jobs (or what your RAM can hold) and the code will work fine with that (except it will take longer time).
      But, there is a constrain only in the GUI representation in this program that will arise if you raised the number of jobs more than 8, you will need to scroll in the job pool table, the gantt chart and the ready queue to view the hidden jobs, and you will need to assign a different color for every single job in the representation.
      If you have any question, please feel free to ask.

    • @wilguensisrael2707
      @wilguensisrael2707 9 лет назад

      full java code please.

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      links in description

  • @studyhub3810
    @studyhub3810 7 лет назад

    sir simulate key is not working please help

  • @OmarMohammed-fy2he
    @OmarMohammed-fy2he 8 лет назад

    turns out the Quantum was fixed at 2 in the code in the RR.java file. Thanks though

    • @ahmed.elmowafy
      @ahmed.elmowafy  8 лет назад +1

      I've just checked the RR.java file, and there is no "2" written there in the file!

    • @OmarMohammed-fy2he
      @OmarMohammed-fy2he 8 лет назад

      i'm sorry. it was the Simulation.java

    • @ahmed.elmowafy
      @ahmed.elmowafy  8 лет назад +1

      What are you trying to accomplish here?
      Obviously you can't change quantum value in the GUI unless you are using the RR algorithm, and the RR algorithm java class is taking quantum value as an argument, so no it's not fixed.

    • @OmarMohammed-fy2he
      @OmarMohammed-fy2he 8 лет назад

      when i choose the RR algorithm from the gui and choose for example 7 as Quantum the result in the gantt chart shows as if the Quantum is equal to 2. i know the RR.java takes quantum value as an argument from Simulation but the Quantum value at Simulation was never changed from "2" even though i selected 7. idk if i am the only one facing this problem but i have solved it. if you don't have the same problem, don't bother.

    • @ahmed.elmowafy
      @ahmed.elmowafy  8 лет назад

      You must restart the simulation for the quantum change to take effect, as its value is sent to the algorithm class at the creation of the object.

  • @michikoscodes9147
    @michikoscodes9147 9 лет назад

    sir, may i know where could i find cpu.face? It says here "Error: Could not find or load main class cpu.Face"

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      +gogeous mystique
      Did you download the complete java project from the link in the description?

    • @michikoscodes9147
      @michikoscodes9147 9 лет назад

      yes... i've tried downloading and extracting it again but every time i open its folder, i really couldn't find the cpu.face.. i only find cpu.java

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      CPU is the namespace
      so the file is "face.java"
      you could open the project by NetBeans and it'll save you all the hard work.

    • @michikoscodes9147
      @michikoscodes9147 9 лет назад

      Oh, i've got it now.. thank u but there's an error.. it could not find face, says CPU.java when i run it... It's error is in the constructor of Face face= new Face();

    • @michikoscodes9147
      @michikoscodes9147 9 лет назад

      I use JCreatorLE to open it

  • @michikoscodes9147
    @michikoscodes9147 9 лет назад

    may i know how to run this java project?

  • @eziera
    @eziera 9 лет назад

    Where can I edit the title "CPU scheduale" to "CPU scheduling"? Thanks. :D Forever grateful to your program.

  • @loglogmaomao123
    @loglogmaomao123 10 лет назад

    sir do you have another link for the jar version of this application? cuz goo.gl/xYM5xM has been disabled. thanks

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      www.mediafire.com/download/dwfn1vdmz4b2hzj/dist.rar

    • @loglogmaomao123
      @loglogmaomao123 10 лет назад

      thank you very much sir. I really appreciate it, =)

  • @DanishKhan-lz7mw
    @DanishKhan-lz7mw 9 лет назад

    how to compile this project in cmd

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      +Danish Khan It's a java project, it need java virtual machine to run.

    • @DanishKhan-lz7mw
      @DanishKhan-lz7mw 9 лет назад

      +Ahmed Elmowafy is this project open in netbeans or eclipse IDE? how to open this project on IDE
      When i run this project it is not respond that is shows in your video please help me out

    • @DanishKhan-lz7mw
      @DanishKhan-lz7mw 9 лет назад

      +Ahmed Elmowafy Thanks i got it

  • @minachan7612
    @minachan7612 7 лет назад

    Sir can you send me the source code for round robin ? please....?

    • @ahmed.elmowafy
      @ahmed.elmowafy  7 лет назад

      Source code links are in the description

    • @minachan7612
      @minachan7612 7 лет назад

      thanks :) I hope I can do my project properly haha

  • @lancetv4826
    @lancetv4826 4 года назад

    Is there C# version?

  • @ghadamohammad9447
    @ghadamohammad9447 9 лет назад

    السلام عليكم أخي من فضلك ممكن use caese للبرنامج او
    functional requirements للبرنامج

  • @johnfrancisyu493
    @johnfrancisyu493 5 лет назад

    You're avoiding questions on how to fix the simulate button i bet you also don't know the solution

  • @markdonadillo4099
    @markdonadillo4099 6 лет назад

    can you do that on PHP sir?? hehe thanks :)

  • @firsafaruq
    @firsafaruq 9 лет назад

    full java project please :)

  • @aeronjohngarcia
    @aeronjohngarcia 7 лет назад

    Sir how I can open this in Netbeans?

    • @ahmed.elmowafy
      @ahmed.elmowafy  7 лет назад

      download the complete java project and open as a project in netbeans

    • @aeronjohngarcia
      @aeronjohngarcia 7 лет назад

      Thank you for replying Sir, but I already download it but when I open in Netbeans It cannot find the code

    • @ahmed.elmowafy
      @ahmed.elmowafy  7 лет назад

      Do you see the code in the files you have downloaded?

    • @aeronjohngarcia
      @aeronjohngarcia 7 лет назад

      Yes. CPU.jar

    • @ahmed.elmowafy
      @ahmed.elmowafy  7 лет назад

      You've to download the source code not the the compiled version
      Full Java Project : www.mediafire.com/download/8atbafplo17drl1/CPU.rar

  • @oxenhorens
    @oxenhorens 5 лет назад

    Nice program bro, can you pls save me with the source code for my project. thank you in advance

  • @nanidrefop
    @nanidrefop 8 лет назад

    Sir can i input numbers manually?

    • @ahmed.elmowafy
      @ahmed.elmowafy  8 лет назад

      yes you can, it's in the file menu

    • @nanidrefop
      @nanidrefop 8 лет назад

      +Ahmed Elmowafy what file menu. on the jar ? or the java project . sorry for newbie question

    • @ahmed.elmowafy
      @ahmed.elmowafy  8 лет назад

      File menu of the program when u run the jar

    • @diego.777ramos
      @diego.777ramos 8 лет назад

      I have problems in the execution you can help me please

  • @couragedzvene3517
    @couragedzvene3517 6 лет назад

    Can i have the project using python if u have please

  • @tommyetulle1463
    @tommyetulle1463 10 лет назад +1

    Source code please.

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      Source Code is now available in the description

  • @bayanabed7101
    @bayanabed7101 9 лет назад

    can you please send the source code? please?

    • @ahmed.elmowafy
      @ahmed.elmowafy  9 лет назад

      Bayan Abed
      Links are available in the description

  • @austinolomogar6797
    @austinolomogar6797 5 лет назад

    Pls can you send me the source code to my email.

  • @ARAMAUGUST
    @ARAMAUGUST 10 лет назад

    بس ممكن يا اخوي تضع الكود

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      الكود عبارة عن برميل اسباجيتى
      هاظبطه وهاحطه على github قريباً ان شاء الله

    • @ahmed.elmowafy
      @ahmed.elmowafy  10 лет назад

      Source Code is now available in the description

  • @playlists5635
    @playlists5635 Год назад

    how to contact you