Thread in JAVA : Part-3

In previous part 2 of threading, we had seen information about keywords and flags used in java threads. Today we go forward in java threading part 3. The synchronized – Putting It Together: The synchronized mechanism works only if all access to delicate data occurs within the synchronized blocks. You should mark delicate data protected by synchronized blocks as private. If you do not do this the delicate data can be accessed from code outside the class definition; such a situation would be able other programmers to bypass your protection and cause data corruption at run…Read more

Thread in JAVA : Part-2

In previous part, we had seen about thread control. thread creation methods and thread priority information. Today we will look on next part in java threading. Using the synchronized Keyword: In this, it describes the use of the synchronized keyword. It provides the JAVA programming language with a mechanism that enables a programmer to control threads that are sharing data. The Problem: Imagine a class that represents a stack. This class may appear first as: public class MyStack { int idx = 0; char [] data = new chat[6]; public void push() {…Read more

Thread in JAVA : Part-1

Recently we had seen basics of threads in this article. Now we will look in detail about Threads in Java part I to Part IV. Basic Control of Threads: In this, it describes how to control threads. Testing Threads: A thread can be in an unknown state. Use the method isAlive to determine if a thread is still viable. The term Alive does not imply that the thread is running; it returns true for a thread that has been started but has not completed its task. Accessing Thread Priority: Use the getPriority method…Read more

Threads Computing in Java – Part 2

Starting the Thread: A newly created thread does not start running automatically. You must call its start method. For example, you can issue the following command as the previous example: t.start(); Calling the start() method places the virtual CPU embodied in the thread into a runnable state, meaning that it becomes viable for scheduling for execution by the JVM. It does not necessarily mean that thread runs immediately. Thread Scheduling: Usually, in JAVA technology threads are pre-emptive, but not necessarily time-sliced (the process of giving each thread an equal amount of CPU time).…Read more

Threads Computing in Java – Part 1

Threads: A simplistic view of a computer is that it has a CPU that performs computations, memory that contains the program that the CPU executes, and memory that holds the data on which the program operates. In this view, there is only one job performed. A more complete view of most modern computer system provides for the possibility of performing more than one job at the same time. You do not need to be concerned with how multiple job performance is achieved, just consider the implications from a programming point of view. Performing…Read more

Do you know about Collaborative Filtering?

The concept of collaborative filtering (CF) is one of the processes of removing impurity or scanning words or information using multiple techniques. This technique have large collaborative among many spy and data sources, etc. The collaborative filtering (CF) can be defined in other words as the ordinary web technique for creating or construing personalized suggestions. The best example of this is Amazon, LastFM, and Netflix. The uses of CF include very huge data sets or in shorts it uses large data. Collaborative filtering (CF) methods is useful in various application which mainly included…Read more

Concept of Distributed System

Improvement in communication technology since last decades has resulted in scalable, reliable and flexible computer network system. The computer communication is increasing so need to develop architecture that will be help to make communication proficient as well reliable. The computer communication is totally dependent on the price, how economical it is as well the speed performance. The basic two architecture that are used I computer communication are the tightly coupled system and second is loosely coupled system. Both architectures are explained in short below. 1.      Tightly coupled system In this system basic difference…Read more

Virtual Destructors in C++

We cannot use the virtual keyword with constructors, but destructors can and often must be virtual. The constructor has the special job of putting an object together piece by piece, first by calling the base class constructor, then the more derived class constructors in order of inheritance. Similarly, the destructor has a special job: it must disassemble an object that may belong to a hierarchy of classes. To do this, the compiler generates code that calls all the destructors, but in the reverse order that they are called by the constructor. That is,…Read more

What is Deadlock?

This article gives the information of deadlock related to the operating system. Process complete for physical and logical resources in the system. A process request resources, if those are not available at that time, a process enters into the wait state. It may happen that waiting process will never change the state again, because resources requested by the process are occupied by the some other process. And this condition leads to deadlocks. Deadlocks affect the process by causing indefinite delays in resources allocation. Processing is blocked, waiting on events that could never happen.…Read more

Need of Decision Support System

           In the 1970 s number business organization began developing information systems which were significantly different from the information systems then in use. The new systems involved spending less resource both human and financial. The new system was interactive and was designed to help specific end users utilize data and models to discus and divide .not solve semi structured and unstructured problems.              These systems were called the decision support system and by the end of 1998 were extended to groups and entire organizations.…Read more