Beispiel #1
0
        private void StartButton_Click(object sender, EventArgs e)
        {
            LinkedList <process> output = Algorithms.FCFS(fcfs, out waitingtime);

            Console.WriteLine(waitingtime);
            OSS.Form2 Chart = new OSS.Form2(waitingtime, output);
            Chart.Show();
        }
Beispiel #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            double q = Convert.ToDouble(textBox8.Text);
            LinkedList <process> output = Algorithms.RoundRobin(q, RR, out waitingtime);

            Console.WriteLine(waitingtime);
            OSS.Form2 Chart = new OSS.Form2(waitingtime, output);
            Chart.Show();
        }
Beispiel #3
0
        private void button5_Click(object sender, EventArgs e) // Start
        {
            LinkedList <process> output = new LinkedList <process>();

            if (radioButton4.Checked) // Preemptive
            {
                output = Algorithms.Preemptive_Priority(priority, out waitingtime);
                Console.WriteLine(waitingtime);
                OSS.Form2 Chart = new OSS.Form2(waitingtime, output);
                Chart.Show();
            }
            else if (radioButton3.Checked) // Non Preemptive
            {
                output = Algorithms.NonPreemptive_Priority(priority, out waitingtime);
                Console.WriteLine(waitingtime);
                OSS.Form2 Chart = new OSS.Form2(waitingtime, output);
                Chart.Show();
            }
            else
            {
                MessageBox.Show("Select Preemptive or Non Preemptive!");
            }
        }