Answered step by step
Verified Expert Solution
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.
BR
"The following is implemented using GETS ALL algorithm which identify the largest server type and schedule all jobs to the first one of largest server type.
Detailed with the use of GETS to identify the largest server type
: Create a socket
: Initialize input and output streams associated with the socket
: Connect dsserver
: Send HELO
: Receive OK
: Send AUTH username
: Receive OK
: While the last message from dsserver is not NONE do jobs n
: Send REDY
: Receive a message typically one of the following: JOBN, JCPL and NONE
Identify the largest server type; you may do this only once
: Send a GETS message, eg GETS All
: Receive DATA nRecs recSize eg DATA
: Send OK
: For i ; i nRecs; i do
: Receive each record
: Keep track of the largest server type and the number of servers of that type
: End For
: Send OK
: Receive
: If the message received at Step is JOBN then
: Schedule a job SCHD
: End If
: End While
: Send QUIT
: Receive QUIT
: 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started