Networking Concepts in Java

Networking: In this, it describes the concept of networking by using sockets. Sockets: Socket is the name given, in one particular programming model, to the endpoints of a communication link between processes. Because of popularity of that particular programming model, the term socket has been reused in other programming models, including JAVA technology. When processes communicate over a network, JAVA technology uses the streams model.A socket can hold two streams: one input stream and one output stream. The  process does send the data to another process through the network by writing to the…Read more

Thread in Java : Part 4

In Part 3 of threads we looked at synchronization, monitor model of synchronization. Now, today we will look at Consumer-Producer Thread concept. Putting It Together: The code in this is an example of thread interaction that demonstrates the use of wait and notify methods to solve a classic producer-consumer problem. Start by looking at the outline of the stack object and the details of the threads that access it. Then look at the details of the stack and the mechanisms used to protect the stack’s data and to implement the thread communication based…Read more

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
Angry Birds maker Rovio is taking a tough decision: laying off 130 staff

Angry Birds maker Rovio is taking a tough decision: laying off 130 staff

Angry Birds is a popular video game franchise that established by Finnish computer game developer Rovio Entertainment. Mainly this famous mobile video game was developed by Rovio and the firm released many versions of angry birds since it launched. Angry birds created a successful combination in comical style and addictive gameplay and thus it enriched the brand through TV shows, toys, an animated movies and clothing’s. In 2016, the company has planned to promote its brand through a premier in cinemas. However, this hit mobile video game maker of Angry Birds, Rovio has…Read more
A Study Revealed: Most Portions of the Users are Unable to Find Apps from the App Store

A Study Revealed: Most Portions of the Users are Unable to Find Apps from the App Store

Things are not going so easy and smooth for the Android and iOS users for a very noticeable time. People use iOS and Android operating systems in order to get their lives on the easier track. And different apps for different sectors are one of the main reasons why people tend to purchase smartphones in the first place. But in a recent study, it has revealed that different app stores are quite unable to provide the facilities that they are prepared and maintained for. Most of the cases in finding the right desired…Read more
Xbox in China: Microsoft has done the Trick ahead of Sony

Xbox in China: Microsoft has done the Trick ahead of Sony

The largest potential gadget industry has finally been in hand as Microsoft has recently launched their Gaming machine Xbox in China. With this decision, Microsoft has become the first main console maker in order to enter the China market which is thought to be the most lucrative market in this regard. Sony has fallen behind in pursuing this massive market as this could be a major setback for them comparing the booming sales Microsoft will enjoy there in the Asian giant. However it has been a real mouthwatering topic for all the game…Read more