CPU Scheduling and BarGraphs

Hey there :) ,
I have wrote a code which include FCFS, SJF, RR, and priority scheduling algorithm for CPU scheduling. Now what exactly my code does is it calculates the average waiting time for each algorithm. What i wanted to do is to show the result in a comparative way like for eg wanted to show average waiting time of all the algo in terms of bar graphs. Can anyone guide me how should i do that ? Thanks :) your little consideration will be a great help to me.

ashish.escape wrote:
Exactly, can you suggest some less complicated library or any other method to draw bar charts for different values. It all depends on what exactly you are trying to achieve. The simplest would be to divide your numbers by x and then use that number to create a String of "*" which you then display with a println call. More complex and pretty would be to create a Swing app, override a JPanel's paintComponent and start drawing rectangles with its Graphics object. If you tweak this enough to make it look decent, pretty soon you're investing enough time where it may be worth your while to study JFreeChart rather than trying to re-invent the wheel (BDLH's picture link notwithstanding).
Bottom line: If you still want it done yourself, though, I think that you'll have to describe your desires in a lot greater detail before anyone will know just what to suggest.

Similar Messages

  • Servlet CPU Scheduling

    Using Weblogic 5.1 SP3 under Solaris 2.7
              We are using the native Performance Pack which allocates 3 Posix readers
              can
              we or should we tune this???
              We have an unusual situation where we want to essentially do an long
              running
              post so we can stream data back to a client much like a file transfer.
              What we are seeing is that depending on the number of Execute Threads we
              see the first
              say 12 Clients - (Using Execute Thread Count 15) start and we dont see
              our other
              say 288 clients until each of our 12 clients are almost finished
              processing.
              It would appear that the cpu allocation timeslice is not switiching
              between concurrent http clients effectively if the servlets are long
              running.
              Is there some tunning which can be done to change this???
              I know this is an unusual situation but given the nature of
              firewalls/proxyservers/load balancing hardware like ArrowPoint,F5 etc we
              need to try to use http vs native
              t3 protocol out to our clients who will be both jfc and web based.
              Any help in this area would be greatly appreciated.
              

    naruto8 wrote:
    write a program in any language that will simulate cpu scheduling SRTF.
    1.the program will ask the user how many process to run
    2.then the program will let the user input the cpu burst time for the following processes
    3.the user will also input the arrival time for the processes
    4.the program will then simulate the cpu scheduling srtf
    5.the program should show he gantt chart, the ATT and the AWT
    pleas help me with this program...We won't do your homework. What have you done so far? What's the problem?

  • Windows 2008 R2 CPU Scheduling

    I have a Windows 2008 R2 Vmware VM running one application published by Citrix. I noticed the CPU usage spiked to 100% while doing an EDI export to MS Excel 2010. I increased the CPU cores by one totaling 1 Socket 6 cores. Now core 0 is higher than the other
    5 consistently. After contacting vmware I was told to ask Microsoft about CPU  scheduling. Not sure where to go from here to balance out the processes amongst all the cores.The only difference between this server and the rest is in Performance Options
    this server is set to Let Windows choose what's best for my computer instead of Adjust for best performance.

    You can also tune the priority of CPU shares through Windows System Resource Manager (WSRM), an optional server feature used for managing processor and  memory usage. WSRM's new built-in policy Weighted_Remote_Sessions can be used to assign users and
    groups into three priorities: Premium, Standard, and     Basic. As should be obvious, users in higher priorities will be given greater CPU shares than those in lower priorities.
    Regards
    Milos
    Reference: Windows IT Pro, Q&A

  • Hyperthreaded CPU Scheduling via Hyper-V

    I searched forums and documents (and books) all over for this answer pertaining to Hyper-V.
    When a guest VM is assigned 2 virtual CPUs with 100% reservation on a Hyper-V host with a processor featuring hyper-threading, does the guest VM receive guaranteed access to two
    physical cores or two logical cores?  For a thought experiment, on a single socket 2-core processor with hyper threading (4 logical cores), from my understanding Hyper-V takes physical core 0 by default leaving a single
    physical core for VMs.  What would be the result of configuring a VM with 2 virtual CPUs on this host with 100% reservation?  Would you be allowed to?  Would the vCPU scheduling be across two logical processors or would the VM fail to start
    because it requires two physical cores?

    Hi Nickmeister,
    "So,a virtual machine’s CPU count means the maximum number of threads that it is allowed to operate on physical cores at any given time. I can’t set that virtual machine to have more than two vCPUs because the host only has two CPUs. Therefore,
    there is nowhere for a third thread to be scheduled. But, if I had a 24-core system and left this VM at 2 vCPUs, then it would only ever send a maximum of two threads up to the hypervisor for scheduling. Other threads would be kept in the guest’s thread scheduler
    (the supervisor), waiting their turn. "
    Based on my understanding , we can image the procedure of physical cpu processing  can be divided to alot of
    time slices ,  more than one thread can be scheduled/switched to be processed by a processor/core .
    Hope the following article is helpful to you regarding to CPU reserve in hyper-v :
    http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/02/17/hyper-v-cpu-scheduling-part-1.aspx
    Also :
    http://blogs.technet.com/b/redpill/archive/2011/02/19/hyper-v-cpu-scheduling.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • RDS CPU Scheduling for 2012 R2

    Seeing as the Windows System Resource Manager was removed from 2012 R2 how do admins prevent a user’s session from killing a server CPU wise?
    The big culprit is web browsers Internet Explorer and Google Chrome

    Hi,
    Thank you for posting in Windows Server Forum.
    For your case, I can suggest you to use Fairshare CPU Scheduling option. With this feature, if more than one user is logged on a system, processing time is limited for a given user based on the number of sessions and their loads. You can GPO setting “Turn off
    Fair Share CPU Scheduling” option and other registry setting for this. Please check below article for information.
    Resource Sharing in Windows Remote Desktop Services
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Firefox is using large amounts of CPU time and disk access, and I need to know how to shut down most of this so I can actually use the browser.

    Firefox is a very busy piece of software. It's using large amounts of CPU time and disk access. It puts my usage at low priority, so I have to wait for some time to be able to use my pointer or keyboard. I don't know what it uses all that CPU and disk access time for, but it's of no use to me. It often takes off with massive use of resources when I'm not doing anything, and I may not have use of my pointer for several minutes. How can I shut down most of this so I can use the browser to get my work done. I just want to use the web site access part of the software, and drop all the extra. I don't want Firefox to be able to recover after a crash. I just want to browse with a minimum of interference from Firefox. I would think that this is the most commonly asked question.

    Firefox consumes a lot of CPU resources
    * https://support.mozilla.com/en-US/kb/Firefox%20consumes%20a%20lot%20of%20CPU%20resources
    High memory usage
    * https://support.mozilla.com/en-US/kb/High%20memory%20usage
    Check and tell if its working.

  • White Macbook 2006 random shutdown solved removed cpu heatsink and more

    I picked up a cheap macbook from a secondhand retailer for $300 and it regularly shutdown, froze, restarted as well as the grey kernel panic screen completely random no real pattern. I set about trying to solve the problem swapping ram and hard drive with my identical 2006 macbook (which I had similar problems with last year, fixed that one with a new battery connector cable). The ram and hard drive made no difference so I downloaded istat menus to see if any combination of cpu voltage, current and temperature were causing the random shutdowns. It seemed when the temperature reached certain values the computer would shutdown or freeze(around 30 to 50 degrees). I'd read on other forums about faulty cpu temperature diodes so I reapplied heatsink compound to the cpu heatsink and checked all the wiring for shorts but nothing seemed to solve the problem. I was ready to retire the computer and use it for spares for my other macbook when needed but I pulled the keyboard off one more time and tried something completely radical. This fix requires some forward planning and software installation but it has completely solved my Random shutdowns completely.
    for instructions see my next post *Fix for random shutdowns white macbook*

    Ok this is not for the non technical person but it is quite a simple process with the right instructions.
    This first step is very important install the software coolbook($10) and fan control (Free)( not smc fan control). Set up coolbook to operate the cpu at the lowest speed and voltage for both power adapter and battery(1002MHz and .95Volts). Remove the keyboard to access the computer logic board (instructions can be found at iFixit). Remove the four screws and two connectors holding the heatsink to the logicboard and gently lift the heatsink out (very important that you leave the fan screwed in and connected). Close the computer back up if you wish to test just gently connect the keyboard and loosly sit the keyboard back in. Restart and reset the pram immediately. Let the computer boot up and then open system preferences and configure Fan Control to your liking. So far no random shutdowns for over a week (was getting many a day previously.

  • Questions on Scheduling and Running an Agent and Scenario

    Hi,
    I have created a scenario and I want to schedule it to run. Is it possible to schedule and run it using an agent but having no Repository?
    Thanks,
    Randy

    Hi Rathish and GuruSank,
    Thanks for replying. I inserted a schedule in my scenario. After that I go to Topology Manager -> Physical Architecture and Update the scheduling of my agent
    but the below error shows up;
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at java.net.Socket.<init>(Socket.java:365)
    at java.net.Socket.<init>(Socket.java:178)
    at com.sunopsis.dwg.dbobj.SnpSession.remoteExecuteTest(SnpSession.java)
    at com.sunopsis.graphical.r.bz.actionPerformed(bz.java)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Please help me again.
    Thanks,
    Randy

  • Scheduling agreement Fcst del schedules and JIT question

    We have a requirement of not sending forecast delivery schedules TOR to MRP from SA.
    Instead, we take this forecast delivery schedules and massage the data (add or delete) and then send it to MRP as regular forecast (PIR).
    so when the JIT schedules come, does the forecast get consumed with the JIT's in MD04?
    lets say, I got 100 pc for 2nd week of July 2011 as forecast delivery schedule from customer and I loaded them into MRP as PIR
    and I got JIT for only 90 PC for the 2nd week of july 2011.in MD04 will the 90 get consumed from the PIR??

    925,
    so in system it will show on 3/21 monday
    I guess this means that you are entering using a Day format rather than Week format.
    You have answered you own question already.  If the online SAP help, which you have read and reasonably paraphrased, is not clear enough to make you understand this, I cannot help you.
    JIT horizon is 3/23, Forecast is for 3/21. 
    As I stated before, even though it may in your mind represent a week's demand, it is still for one day.  There is no bucketing, nor time-based disaggregation, nor consumption.  It is just a scheduling agreement.
    You wrote
    am using MRP indicator D. that means within jit horizon, consider my jit quanity for requirements. and after jit horizon consider my forecast delivery schedules as requirements.
    .  This is a reasonable paraphrase of the SAP online help.  Do you believe this?
    Forecast schedule is for 3/21.  NOT for W 12/2011.  This is before the JIT horizon, isn't it?  What do you think will happen to the forecast schedule, looking at the last 'rules' you just wrote? and as stated in the SAP help that you read?
    Now you want to enter JIT schedules. 21/22/23/24/25/26.  JIT horizon is 23.  24/25/26 are after JIT horizon.  What do you think will happen, based on the 'rules' you just wrote? 
    I feel my time is being wasted when you keep asking me these questions, already having the answers explicitly stated in SAP oinline help.  Since you do not have access to a system, this cannot be a support issue, it is a evidently a matter of idle curiosity for you.  I therefore believe I will will move onto other forum questions, where there is a possibility that the questioners will get some business benefit from my answers.
    Best Regards,
    DB49

  • Forecast delivery schedules and JIT deliveries

    Hi Gurus,
    Got a question on sales scheduling agreements schedule lines. Our customer sends 10 weeks of forecast delivery schedules and 2 weeks of JIT deliveries. which one of these two are passed to MD04?
    Assuming only forecast delivery schedules are seen in MD04:
    Assuming customer sends forecast delivery schedule for week2 as 50. but in JIT deliveries he only sent 40 for that week. if only forecast deliveries are see in md04, then my forecast and planning quantity is 50 , but actually my JIT delivery is only 40.  AM I  producing 10 extra? that  means my planning is wrong?

    925,
    so in system it will show on 3/21 monday
    I guess this means that you are entering using a Day format rather than Week format.
    You have answered you own question already.  If the online SAP help, which you have read and reasonably paraphrased, is not clear enough to make you understand this, I cannot help you.
    JIT horizon is 3/23, Forecast is for 3/21. 
    As I stated before, even though it may in your mind represent a week's demand, it is still for one day.  There is no bucketing, nor time-based disaggregation, nor consumption.  It is just a scheduling agreement.
    You wrote
    am using MRP indicator D. that means within jit horizon, consider my jit quanity for requirements. and after jit horizon consider my forecast delivery schedules as requirements.
    .  This is a reasonable paraphrase of the SAP online help.  Do you believe this?
    Forecast schedule is for 3/21.  NOT for W 12/2011.  This is before the JIT horizon, isn't it?  What do you think will happen to the forecast schedule, looking at the last 'rules' you just wrote? and as stated in the SAP help that you read?
    Now you want to enter JIT schedules. 21/22/23/24/25/26.  JIT horizon is 23.  24/25/26 are after JIT horizon.  What do you think will happen, based on the 'rules' you just wrote? 
    I feel my time is being wasted when you keep asking me these questions, already having the answers explicitly stated in SAP oinline help.  Since you do not have access to a system, this cannot be a support issue, it is a evidently a matter of idle curiosity for you.  I therefore believe I will will move onto other forum questions, where there is a possibility that the questioners will get some business benefit from my answers.
    Best Regards,
    DB49

  • Difference between Scheduling agreement delivery schedule and PO delivery s

    Dear All,
    Please tell the difference between the Scheduling agreement delivey schedule and PO delivery schdule.
    In PO itself, we can give the delivery schedule.
    Then what is the purpose of making scheduling agreement and maintain schedule in ME38?
    Regards

    Hi,
    Difference between Scheduling agreement and PO is while PO is a legal document whatever the delivery schedules you mention in PO, you are liable to pay for the entire qty in case of cancellation
    In case of scheduling agreement, we have Firm Zone and Tradeoff Zone to provide some cushion against paying for the entire qty you have ordered
    Firm zone: (go-ahead for production)
    If the date of a schedule line lies within the firm zone, the vendor has the go-ahead to produce the relevant quantity with the assurance that the orderer will bear any and all material and production costs associated with the scheduled quantity in the event of subsequent cancellation by the latter.
    Trade-off zone: (go-ahead for procurement of input materials)
    If the date of a schedule line lies within the trade-off zone, the vendor has the go-ahead to purchase any input materials necessary to produce the scheduled quantity. The orderer will recompense him in full for such outlay (but not for any other production costs) in the event that he should subsequently cancel the scheduled quantity.
    Schedule lines that lie beyond the firm and trade-off zones fall within the planning zone (forecast zone) and are for rough guidance only, being without any commitment on the part of the orderer.
    In case of PO if you want to cancel the order, you are liable to pay for the entire quantity, while in case of Scheduling agreement if you want to cancel the schedule and if the days fall in Firm zone or trade off zone or planning zone you have to pay only for raw materials or assembled products according to the above description
    Regards
    Venkat

  • PO Delivery Schedule and GRN linkage

    Hello,
    A PO has a line Item and for that Line item , number of Delivery schedule lines have been created.
    Now for One delivery schedule line (EKET-EINDT) , Multiple GRN's Created and similarly for other delivery schedule lines too.
    I want to know for which delivery schedule line which multiple GRN's Prepared.I have searched EKBE table, (no delivery schedule line reference is given), also EKBEH, EKETH , but no records found.
    From EKET Table I can get Scheduled Qty.and Delivered Qty. but not multiple GRN Qty for that schedule line.
    Please help to give solution.

    Thank you charlie for quick response.
    Tried to run ME2N and selected GR line number and Del Sch , But system showing no entries found for 1st GRN line.
    When selected second line and Del schedule, System gives message " Pl select valid line.
    I want to develop a program for report on mismatch in delivery schedule and actual delivery date ( GRN Date).
    Please let me know if there is any table from where i can get the dates of GRN creation according to delivery schedule line.
    Thanks
    Ankush

  • How to schedule and deliver a report in OBIEE 11g as an link or url to the report ?

    I am using OBIEE 11.1.1.6. We have a requirement to schedule and deliver reports as a URL and not as an attachment ( as the file sizes are quite huge ). Have any one implemented such a scenario ? If so kindly share was it an out-of-tne-box solution or used web services ? Thanks in advance

    Hello user9210174,
    I have tried in this way.Let me know if it meets your requirement.
    Created a dummy report with all the reports embedding as a Link and this report i have inserted into a dashboard then created an agent to schedule this dashboard.
    Thanks,
    Sasi Nagireddy..

  • BI Schedule and Presenation Server on Different Servers Configuration

    I'm having a problem getting my iBots to run and deliver the information to the catalog with the following configuration:
    2 Presentation Servers on Windows with IIS for NTLM authentication (via a Load Balancer)
    OBIEE Server and Scheduler, and Presenation Server on Solaris (the Presentation Server on Solaris will be turned off)
    The catalog between the 2 Windows Servers are are shared. When I create an iBot on the Windows the request is sent to the Scheduler on Solaris and errors out with the following message:
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Path not found (
    /shared/_ibots/Test Email from UAT)^M
    Error Codes: U9KP7Q94^M
    My question is why does the scheduler send the alert to the Presentation Server on the Solaris box and not the shared Presentation Server with the shared catalog on the Windows Servers. Am I missing something in the configuration?
    Thanks,
    Chuck

    I figured it out. I had to re-run the schconfig utility on UNIX and reconfigured the server from localhost:9710 to the actual server name.

  • Schedule and Items program is not picking the new Billing lines created PN

    Hi Gurus,
    I am using version 11.5.10. I am populating the data into Property manager billing lines of lease thru API.
    Once the Lines are inserted I am calling the Schedule and items program to for authorizatio.
    My program is not picking up lines created thru API, I am trying copying the same line and inserting in billing tab and it works fine.
    Looking forward to your suggestion/solution....

    Hi,
    I don't know but I think you call of the Schedule and items program is in a new session.
    Then you must commit the data before you call the Schedule and items program

Maybe you are looking for