Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Produce a flawless table or diagram if required. Resolve this issue immediately. Strict warning: No AI assistance. BR 1 6 The following is implemented using

Produce a flawless table or diagram if required. Resolve this issue immediately. Strict warning: No AI assistance.
BR16
"The following is implemented using GETS ALL algorithm which identify (1) the largest server type and (2) schedule all jobs to the first one of largest server type.
Detailed with the use of GETS to identify the largest server type
1: Create a socket
2: Initialize input and output streams associated with the socket
3: Connect ds-server
4: Send HELO
5: Receive OK
6: Send AUTH username
7: Receive OK
8: While the last message from ds-server is not NONE do // jobs 1- n
9: Send REDY
10: Receive a message // typically one of the following: JOBN, JCPL and NONE
//Identify the largest server type; you may do this only once
11: Send a GETS message, e.g., GETS All
12: Receive DATA nRecs recSize // e.g., DATA 5124
13: Send OK
14: For i =0; i < nRecs; ++i do
15: Receive each record
16: Keep track of the largest server type and the number of servers of that type
17: End For
18: Send OK
19: Receive .
20: If the message received at Step 10 is JOBN then
21: Schedule a job // SCHD
22: End If
23: End While
24: Send QUIT
25: Receive QUIT
26: Close the socket
Your task is to implement a new scheduling algorithm, called First Capable. The algorithm can be implemented using GETS Capable. It schedules a job to the first server in the response to GETS Capable regardless of how many running and waiting jobs there are. Code the new algorithm in Java Socket programming"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

What benefit or advantage does your organization offer each public?

Answered: 1 week ago