Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

I need help with my operating system java hw

Customer Question
hi .. i need help with...
hi ..
i need help with my operating system java hw
Submitted: 4 months ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Customer reply replied 4 months ago
i need to provide the following measurement
1- Total time required by executed processes,
2- Throughput
3- Average turnaround time,
4- Average waiting time
5- Average response time.
6- Memory utilization
Customer reply replied 4 months ago
input is the following:
The input to the program is a text file containing system configuration and process’s arrival time and specifications. The first line in the input line is the system configuration. The first line looks like:MM=16
Where, MM is the main memory size in GB. Lines from the second line until the last line in the text file contain processes’ specifications. Where it looks like:AT= 13 JobID= 66 TimeUnit= 4 MR= 72.3,
where, AT is the arrival time (more than one job could arrive at the same time), JobID is the Job ID (it should be unique), TimeUnit is the required execution time units, and MR is the required memory for the process in MB.
and i will give you the code of the input file.
Answered in 2 hours by:
11/25/2017
Programmer: LogicPro, Computer Software Engineer replied 4 months ago
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,422
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified

Hi

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Welcome here.

My name is ***** ***** I will help you.

Please provide complete requirements.

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

If you have any file zip and upload to www.wikisend.com and paste download link here.

Ask Your Own Programming Question
Customer reply replied 4 months ago
hi thank you for help, i will give you code that i wrote put i didn't complate it.
i just wrote the input file.
but plz can you make it a simple java like a for loop and linked list and comment so i can understand it .
and there is a Gui
Customer reply replied 4 months ago
i don't need GUI.
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Ok

Ask Your Own Programming Question
Customer reply replied 4 months ago
http://wikisend.com/download/689950/Memory_Management.docx
*Code and InputFile.text:
http://wikisend.com/download/785338/InputFile.docx
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

What is the deadline?

Ask Your Own Programming Question
Customer reply replied 4 months ago
2017/11/29
Customer reply replied 4 months ago
in wednesday
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Ok

I will check it and reply you in few hours.

Ask Your Own Programming Question
Customer reply replied 4 months ago
ok thank you alot :)
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Welcome

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Hi,

Looking at the efforts, I am sending small offer. let me know once you accept it and I'll have it ready ASAP

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Thank you.

Ask Your Own Programming Question
Customer reply replied 4 months ago
plz can you give me for today at least the code for calculate the time of the process execution because i need it for tommorow to disscuss it with my friend if it is ok with u :)
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

I'll try my best my friend

have a wonderful day

Ask Your Own Programming Question
Customer reply replied 4 months ago
ok ����
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

thanks

Ask Your Own Programming Question
Customer reply replied 4 months ago
welcome
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

thanks

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Just posted the link for Simulator.java

Let me know once you get it or need anything else or Leave your rating by selecting five stars located on the top right of the question page. Giving a positive rating compensates the Expert for their time with you. Please remember that your Expert will not be paid until you leave a positive rating for the answer. If the stars are grayed out or you cannot click on the stars to rate your experience, reply to your Expert and let them know so they can adjust your question and allow you to rate.

Please consider adding bonus after rating

http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can also come back and add a bonus at a later date by using the "Write a review or give a bonus" button on your question page.

We can continue the conversation until you're satisfied and rate my answer as excellent to credit me. I can address follow up questions and I'm always here to help.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

Thank you for using this site!

LogicPro

Ask Your Own Programming Question
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Hi again,

Please read:

Just following up with you to see how everything is going and if you have more questions for me. or Leave your rating by selecting five stars located on the top right of the question page. Giving a positive rating compensates the Expert for their time with you. Please remember that your Expert will not be paid until you leave a positive rating for the answer. If the stars are grayed out or you cannot click on the stars to rate your experience, reply to your Expert and let them know so they can adjust your question and allow you to rate.

You can ask me again using "For LogicPro only" at the start of your questions like you do to get instant answers.

It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

If you need any additional information on this answer, please don't hesitate to ask by clicking on 'Reply to Expert', and I will reply as soon as possible.

I hope you found the information in my answer helpful, and if so, please let me know, here. Thank you!

Thanks very much for using Just Answer!

Best wishes

LogicPro

Ask Your Own Programming Question
Customer reply replied 4 months ago
thank u �� yes is this the hole project ? and can i ask u tommorow because today i have exam :)
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Yes, this is entire code you need.

Do you need any report too? If yes, please open a new question for me

Ask Your Own Programming Question
Customer reply replied 4 months ago
thank you alot but i may need help to understand the code so can i ask u tommorow ?
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Yes. Thanks

Ask Your Own Programming Question
Customer reply replied 4 months ago
Hi
where can I insert the input file so that the code can read it?
Customer reply replied 4 months ago
this "InputFile.txt";
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Which IDE you are using?

Ask Your Own Programming Question
Customer reply replied 4 months ago
eclipse
Customer reply replied 4 months ago
i put the text file in the scr file put i got an error
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

put outside of src folder(in the parent of src)

Ask Your Own Programming Question
Customer reply replied 4 months ago
ok
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

ok

Ask Your Own Programming Question
Customer reply replied 4 months ago
Queue<Process> rejectedQ = new LinkedList<Process>();
\why rejectedQ not waiting ?
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

Waiting queue is your input file

Ask Your Own Programming Question
Customer reply replied 4 months ago
where can i find the Worst fit First fit Best fit in the code?
Programmer: LogicPro, Computer Software Engineer replied 4 months ago
Nowhere. Per asaignment, this is contiguous and to discard the process if needs more memeory than main.
Ask Your Own Programming Question
Customer reply replied 4 months ago
ok
Programmer: LogicPro, Computer Software Engineer replied 4 months ago
Thanks
Ask Your Own Programming Question
Customer reply replied 4 months ago
mm = Integer.parseInt(line[1]);
why u write here line[1]
Customer reply replied 4 months ago
also here
p.at = Integer.parseInt(line[1]);
p.JobID = Integer.parseInt(line[3]);
p.timeUnit = Integer.parseInt(line[5]);
p.mr = Integer.parseInt(line[7]);
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

mm = Integer.parseInt(line[1]); to read first line having memory

other lines are to read process information

Ask Your Own Programming Question
Customer reply replied 4 months ago
ok
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

ok

Ask Your Own Programming Question
Customer reply replied 4 months ago
can u explain this please :)
private static double getAverageMemoryUntilization(Queue<Process> completedQ) {
double sum = 0;
//iterating over queue
Iterator<Process> itr = completedQ.iterator();
while(itr.hasNext()) {
sum += itr.next().mr;
}
return sum/completedQ.size();
}
Programmer: LogicPro, Computer Software Engineer replied 4 months ago
Returning avg memory per process
Ask Your Own Programming Question
Customer reply replied 4 months ago
to store time executed
int executionTime;
this variable is not used in the code , did u mean to use it for the return executionTime.get() like in the below code?public int turnAroundTime() {
//last end time
return executionEndTime.get(executionEndTime.size() - 1);
}
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

It is being used. Try removing it. You will get errors

Ask Your Own Programming Question
Customer reply replied 4 months ago
I got zero on my project :'(
the project is about the first fit, worst, best fit as mention in the project, not CPU burst
Customer reply replied 4 months ago
as eng wrote:
Grade: 0
Not applying the concept of the project
Programmer: LogicPro, Computer Software Engineer replied 4 months ago

My apologies. You can see they wrote "Contiguous Memory Allocation"

If this is the case, they did not write clear instructions. this was very complex code as you saw

Ask Your Own Programming Question
Was this answer helpful?
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,422
13,422 Satisfied Customers
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,422 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
From the below Java code, extend it and create a few
From the below Java code, extend it and create a few derivative classes, i.e. a Router, a Switch, a Server, a PSU (Power Supply Unit) etc. Each of those new classes has to be declared as extending the… read more
LogicPro
LogicPro
Computer Software Engineer
13,422 satisfied customers
I am trying to see how to get rid of the last few charaters
I am trying to see how to get rid of the last few charaters upto and including the dash in the following 2141B-DNM-4 3157E-FC-14 3157E-FC-10/12 3157E-FC-7/8 2157E-FC-6 … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Is this wordpress support? I have one site on Blue Host and
I have one site on Blue Host and could not get support there, … read more
Jins M. N.
Jins M. N.
Systems Administrator
Diplom
1,946 satisfied customers
I have a very simple question about a calculation/formula
I have a very simple question about a calculation/formula that I am trying to set up in Excel 16. … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,395 satisfied customers
I can't get the bar at the top of the sheet to show content.
I can't get the bar at the top of the sheet to show content … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Trying to make a chess board. Trying to reduce the code and
trying to reduce the code and add a function, im using python … read more
Ingo U
Ingo U
Master\u0027s Degree
509 satisfied customers
How do I fill an avery form 8660 address labels from an
how do I fill an avery form 8660 address labels from an excel spread sheet … read more
Michael Rademacher
Michael Rademacher
MBA
4 satisfied customers
How can I change a column of text to numbers? Just reguar
Highlight the column and change and change the format to number. … read more
Jeevan DSouza
Jeevan DSouza
Professor
PhD
3 satisfied customers
I am trying to paste in the issue I am having with my sql
I am trying to paste in the issue I am having with my sql code but it will not send … read more
LogicPro
LogicPro
Computer Software Engineer
13,422 satisfied customers
I get an error message that it is trying to terminate in
I get an error message that it is trying to terminate in unusual way … read more
Aaron B
Aaron B
Computer Repair Technician
High School or GED
428 satisfied customers
Can you help me in one python program pls. I want to know
i want to know what is wrong in my program. its throwing syntax error … read more
George Sibiya
George Sibiya
PhD
242 satisfied customers
I have an advanced exam in Excel. I want somebody to do the
Hello, i have an advanced exam in Excel. I want somebody to do the exam, I will send the pdf copy of the exam by email. You will do the actual excel worksheet based on the directions on the exam paper… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I need to write a small program in c# for a job interview. I
I need to write a small program in c# ***** a job interview. I know c# ***** well but prefer to spend my time on preparing for other materials. can you help?… read more
LogicPro
LogicPro
Computer Software Engineer
13,422 satisfied customers
Have application error 0x0000142 How to fix. Excel, word.
have application error 0x0000142 How to fix JA: Which software or app can I help with? Customer: excel, word JA: What have you tried so far with your Excel? Customer: yes many times JA: Anything else … read more
Cody
Cody
Computer Science
2,150 satisfied customers
Someone is using my registered domain name to set up a blog
Someone is using my registered domain name to set up a blog and page on WordPress. I need to have it taken down. It is not only registetred with GoDaddy, it is registered with ICANN … read more
Michael Rademacher
Michael Rademacher
MBA
4 satisfied customers
Can anyone help me with an Excel VBA problem? I am getting a
Can anyone help me with an Excel VBA problem? I am getting a runtime error code 380 - unable to set the width property of a userform. Yet it is set!! The userform is in a format I using for many other… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Does anyone understand and program qbasic? Qbasic. To do a
does anyone understand and program qbasic? JA: Is there a specific language you're coding in? Customer: yes. qbasic. JA: What's your objective? How can we solve this for you? Customer: to do a qbasic … read more
Jeevan DSouza
Jeevan DSouza
Professor
PhD
3 satisfied customers
I need it in 17 hours c++ lab1 part a, and c Its in the link
I need it in 17 hours c++lab1 part a,b and chttps://fgamedia.org/faculty/anand/cs2c/modules/cs_2C_1a_8.htmlhttps://fgamedia.org/faculty/anand/cs2c/labs/2C.Lab-01-Spec-SubsetSum.pdf … read more
LogicPro
LogicPro
Computer Software Engineer
13,422 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x