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

Custom web application development

In today’s world web application become popular due to the many reasons such as its interface and way of designing the application. The concept of Custom web application development is famous among the business software. The web application shows the excellent picture of your business, product or services in a very informative manner. There may be the risk of the web development software in short we can say that there are many levels of risk in web application development because this application runs on the internet. In today’s web development there are various…Read more

Social networking

Remote locations are closely related to each other due to social network. Today social network is the need of today as well undivided part of each one’s life. The advent of social networking has played vital role in lifestyle of human beings. Social network helps us to be connected to each other. The various means are provided to be connected like most used what’s app that is commonly known as what an application and second world widely used social network is Facebook. This social network is nervous of today's live society. This helps…Read more
HTML: Using CSS to assign padding, margins and borders

HTML: Using CSS to assign padding, margins and borders

Introduction CSS provides many properties for formatting your HTML document. In previous articles you learned to apply fonts and colours to elements. In this article you will learn CSS formatting properties that allow you to set an element’s padding, margin and borders. You will also learn CSS formatting properties for setting an element’s height and width. Understanding an element’s padding, margin and borders is straightforward. An element is composed of its opening tag, closing tag, and all content in between the two tags. The box model refers to picturing all elements visually as…Read more

HTML : Using CSS to format hyperlinks

Introduction The formatting you applied to other elements in some of the previous articles can also be applied to hyperlinks. Moreover, you can apply these styles to hyperlinks depending upon the hyperlink’s state. You already know a hyperlink’s states from using the Web. Hyperlinks can be in one of five states: unvisited, moused-over, focused or active and visited. Before you click on a link, it is unvisited. As you move your mouse over the link, it is mousedover. When you actually click the link it is active. Alternatively, you could say a link…Read more

HTML : Using CSS to assign color

Introduction Choosing the right Colors is as important as choosing the correct fonts. The right Colors can make your site feel spooky, professional or even whimsical. Colors, like fonts, help your site convey different feels depending upon your choices. But choosing Colors seemingly at random can make your website’s pages appear unrelated to one another and unprofessional. Color is important; ignore it and your site suffers. Choosing a palette Colors are specified using RGB, hexadecimal or name values. Much like optimising images, a few years ago a tutorial like this would have opened…Read more