Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Research, investigate and document areas relating to process control management

ID: 3744109 • Letter: R

Question

Research, investigate and document areas relating to process control management of any Operating System of your choice. Areas to be discussed in your research documentation to include among other areas, types of

1. scheduling mechanisms employed,

2. creation and handling of processes or threads and

3. internal systems structure, problems faced using these techniques of process control management and

4. solutions used to overcome them.

(Pre-emptive and non-pre-emptive, scheduling, algorithm – explain which is best and worst)

Explanation / Answer

1. Scheduling mechanism :

The Scheduling is an activity performed by the process manager(which manages the processes) .The process manager based on particular algorithm(Strategy) it will remove current running process from the CPU and it will another process if there is any need .

2. Creation and handling the threads :

Thread is a light weiht process.The implementation of threads and processes differs from operating system to operating system.Thread is not a seperate part of a process.It is a component of a process.A process can have as many threads it wants.The threads which are under same process can share the work process.This is the basic difference between the thread and process.But handling the threads makes little bit over headache compare to a process.

Coming to the implemantation details, the threads in java are created by extending the Thread class or by implimenting the runnable interface.

Thread thread = new Thread();

in order to start the thread we have to use thread.start() or thread.run() method.

The thread.run() mehtod acts like main method for Thread class.

3.Problems with process control management :

The main problems comes with the thread is synchronization problem.We should not make any thread to use the shared environment Because when two threads are trying to write the same data,then data may be corrupted.So, the processes which maintains the threads needs to provide locks on thread externally.Locks are provided to make sure that data is not overridden by multiple threads at the same time.

Coming to the processes , it is also have some problems.If they are not scheduled properly , some processes may take more time to process.It will make other processses to wait for more time.

4.Solution :

The primitive scheduling :

As the name suggests , The rsources are allocated for only limited time.That means a process cannot be used over limited time.This is the best way to schedule the process.It is flexible.

The Non-pre-emptive scheduling :

As the name suggest,Once the process is allocated , then it processes it's request time till it's burst time.It doesn't release the resource till it's burst time.It will make other processes to wait for more time.It is not flexible.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote