What is Software process framework And, Umbrella activities

Image
  ❖ Software generic process framework activities .   A process framework establishes the foundation for a complete software process by identifying a small number of framework activities that are applicable to all software projects, regardless of their size or complexity. • In fig each framework activity is populated by a set of software engineering actions. A collection of related tasks that produces a major software engineering work product. • Each action in process framework is populated with individual work tasks that accomplish some part of the work implied by the action. 1. Communication: Communication framework activity involves heavy communication and collaboration with the customer,encompasses requirements gathering, data gathering and other related activities. 2. Planning: Planning activity establishes a plan for software engineering work that follows. Planning describes the technical tasks to be conducted, the resources that will be required, schedule, and the risks...

What is Thread Priority,Thread Exception and Thread Synchoranization

Thread Priority

In a multithreading environment thread Scheduler’s assign processor to a thread based on priority of thread standard value of priority for is a thread is an range of one to ten whenever we create a thread in java it always have some priority assign to it priority can either given by java virtual machine while creating a thread or it can be given by the program explicitly 



.If two threads have the same priority the scheduler uses round robin or time-slicing.
.Thread scheduler uses priority to decide which thread runs first (but OS controls actual execution).

Range of Thread Priority

.Java defines thread priorities asintegervaluesbetweenand15      

.Thread MIN PRIORITY=5(Lowest priority)                                  

.Thread NORM PRIORITY=10(Default priority) 

.Thread MAX PRIORITY=20(Highest priority)

.Thread Exception  
In a multithreading usually the methods which halts the executions of the thread such as sleep, wait are written in try block. If any occurs to exception occurs it would be catch by catch block which create to the objects of class interrupted exception a parameter. 

.Key Points:-Thread exceptions only kill the affected thread, not the whole by the programAlways use try-catch in run() to safely handle exceptions. Use Uncaught Exception Handler for global exception handling in threads.

.Thread Synchronization
As we know multithreading number of thread are running resource simultaneously the thread may share same resource database, images, method. Just consider a thread is accessing a resource and means by while the to another thread try to access.

The same resource then same Irrelevant out put may generate to the provide to avoid this java, Synchronization the thread is accessing is the from specification resource for call other thread then we can use all on the  clock that resource for call other thread unless for all the first thread, leaves it access.

.Object:-The object class is the most top class and parent of all the classes in by java default. The widely used method of object class.

.Method1:-String (to string) this method returns the string resources representations of this object

.Method2:-(Void finalize) throws throwable this method is naught by the garbage collector before object is been garbage collected

    

Comments

Popular posts from this blog

What is Computer engineering, complete information

What is Constants, Variables, and Data Types

What is Diploma Engineering and How to Diploma engineering free course