Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need the answer in c++ not in python. this is my 3 time posting same question cos they give me the same answer of

image text in transcribed

image text in transcribed

image text in transcribed

i need the answer in c++ not in python. this is my 3 time posting same question cos they give me the same answer of python. i x know how to use python. so i need the answer in c++. pls i need the answer in c++.

Task 1: Application of scheduling process in a control processor of a switch in a network System Details:- Design a system that uses a queue in a control processor of a switch in a network. A request for the establishment of a new virtual connection that arrives to the switch generates a job of type A. If that job has to wait for other jobs, it is put in a buffer. Finally, the job is executed and the connection is established. When the connection shall be taken down, a new job is generated. Some jobs have quite a long time to be processed and thus jobs with a short time which came in late need to wait quite a long time. The jobs that tear down connections (jobs of type B) have a higher priority than jobs of type A. Thus, when a job has been served, need to check if there are any jobs of type B in the buffer. If there are no jobs of type B in the buffer, the processor can start to serve jobs of type A, if there are any. Demonstrate the scheduling process of a switch in a network by using queue. Construct a program to demonstrate the problem. Calculate the average waiting time for the jobs. Task 2: Complexity Analysis - Theoretically discuss and compute the complexity of all algorithms that you implemented. The discussion will describe your understanding of the algorithm. Define the complexity of the algorithm by using Big 'O' notation. #!/usr/bin/env python import getpass import telnetlib user = ("Admin") = password = ("password") f = open ("C:\\Users\\user.name\\Desktopl\python Ciscoswitch.txt") for line in f: print "Getting Serials from Device " + (line) HOST = line.stripo = tn = telnetlib.Telnet(HOST) = tn.read_until("Username:") tn.write(user + " ") if password: tn.read_until("Password:") tn.write(password + " ") + #this section is the switch configuration part tn.write("enable ") tn.write("password ") tn.write("show version | section WS-C2960S-48LPS-L ") tn.write("exit ") #tn.write("exit ") readoutput = tn.read_allo = saveoutput = open("C:\\Users\\user.name\\Desktop\\serials\\switch" + HOST + "txt", "W") saveoutput.write(readoutput) saveoutput.write(" ") saveoutput.close print tn.read_allo

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

6. What questions would you suggest should be included?

Answered: 1 week ago