Posts

Showing posts with the label Thread Exception and Thread Synchoranization
  ❖Communication practices: Principle 1 Listen: •Try to focus on the speaker‘s words, rather than formulating your response to those words. •Ask for clarification if something is unclear, but avoid constant interruptions. •Never become contentious in your words or actions (e.g., rolling your eyes or shaking your head) as a person is talking. Principle 2 Prepare before you communicate: •Spend the time to understand the problem before you meet with others. If necessary, perform some research to understand business domain. •If you have responsibility for conducting a meeting, prepare an agenda in advance of the meeting. Principle 3 someone should facilitate the activity: •Every communication meeting should have a leader (a facilitator) 1)To keep the conversation moving in a productive direction, 2)To mediate any conflict that does occur, and 3)To ensure that other principles are followed. Principle 4 Face-to-face communication is best: •It usually works better when some other represen...

What is Thread Priority,Thread Exception and Thread Synchoranization

Image
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 asintegervaluesbetween 5  and15        . Thread MIN PRIORITY=5 (Lowest priority)                                    .Thread NORM PRIORITY=10 (Default priority)   .Thread MAX PRIORITY=20 (Highest priority) .Thread Exception  ...