Assignment help – Discussion Forum 2
Assignment help – Discussion Forum 2-101
An integer is a numeric value while a string represents a character value represented inside single or double-quotes. An integer class in Java language holds numbers while the String class holds characters that are enclosed in quotes. Integers can also be converted to String, but String cannot be converted to integers (Talbot, 2016). Since machine language readers usually have a compiler, it is easy for the computer to understand any command that it is given. However, it is important for the programmer to feed the right instructions in order to get the desired output. A programmer tells the computer that a variable is a number or a string by making use of quotes. For instance;
var tenS = “10”, // string
tenN = 10, // number
The first variable represents a string due to the existence of the double quotes; whereas the non-existence of the quotes automatically classifies the variable as a number.
Assignment help – Discussion Forum 2-240
Process scheduling is carried out by an operating system and ensures that processes are executed efficiently with reduced wait times. As such, several criteria are enlisted in the scheduling process that includes CPU Utilization; which reduces strain on the CPU, managing the percentage of time the CPU is busy. Throughput; which increases the number of processes completed in a given duration. Wait time; which reduces the time taken waiting for a process. The response time; which minimizes the duration a user needs to wait in order to run a process and the turnaround time; which is the total time a process takes from start to finish (University of Illinois, 2012). These criteria make use of policies such as; the fairness policy, First Come First Served(FCFS), Round Robin, Shortest Job First(SJF) and the Multilevel Feedback Queues, to optimize the design of a process to suit a particular system. For instance, while running many processes, the operating system can be scheduled to use the SJF policy to complete inputs that are predicted to have the shortest amount of processing time which may allow the CPU to complete many more tasks in a short amount of time.

References
Talbot, T. (2016). Another Introduction to Programming with Java Book.
University of Illinois. (2012, February 24). Process Scheduling. Retrieved from https://courses.engr.illinois.edu/cs241/sp2012/lectures/18-scheduling.pdf

Published by
Essays
View all posts