Posts

Showing posts with the label Thread Exception and Thread Synchoranization

What is Hierarchical Data Model and Network data model

Image
1.Hierarchical Data Model:- A  Hierarchical Data Model request the data in tree like structure in which there is a single parent for each record. To maintain order there is a sort fields which. keep sibling in (child node) into a recorded manner.  This type of models are designed basically foe the early main frame database management system like the information management system This model allow one to one and one to many relationship between various type of data . The hierarchical structure is used as the from a physically order of record on storage  .Advantage of hierarchical model  A user can retrive data very quickly due to the presence of explicit links between the structure .Disadvantage   of hierarchical model     This type of database connect support complex relationship. When a user need to store the record in child to table that is currently to the unrelated to any record in a parent table than it gets difficult to record the user d...

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  ...