Inter-thread communication involves the communication of threads with each other. The three methods that are used to implement inter-thread communication in Java. wait() This method causes the current thread to release the lock. This is done until a specific amount of time has passed or another thread calls the notify() or notifyAll() method for this object. notify() This method wakes a single thread out of multiple threads on the current object’s monitor. The choice of thread is arbitrary. notifyAll() This method wakes up all the threads that are on the current object’s monitor. Example class BankClient { int balAmount = 5000; synchronized void withdrawMoney(int ... Read More
No, the "this" keyword cannot be used to refer to the static members of a class. This is because the “this” keyword points to the current object of the class and the static member does not need any object to be called. The static member of a class can be accessed directly without creating an object in Java. Example public class StaticTest { static int a = 50; static int b; static void show() { System.out.println("Inside the show() method"); b = a + 5; ... Read More
A thread-safe class is a class that guarantees the internal state of the class as well as returned values from methods, are correct while invoked concurrently from multiple threads. The collection classes that are thread-safe in Java are Stack, Vector, Properties, Hashtable, etc. Stack The Stack class in Java implements the stack data structure that is based on the principle of LIFO. So, the Stack class can support many operations such as push, pop, peek, search, empty, etc. Example import java.util.*; public class StackTest { public static void main (String[] args) { Stack stack = new Stack(); ... Read More
A Treeset is a subclass of AbstractSet class and implements NavigableSet Interface. By Default, a Treeset gives an ascending order of output and it will use a Comparable interface for sorting the set elements. Inside a Treeset, we can add the same type of elements otherwise it can generate a ClassCastException because by default TreeSet uses a Comparable interface. Syntax public class TreeSet extends AbstractSet implements NavigableSet, Cloneable, Serializable We can iterate a TreeSet in two ways. Using Iterator We can iterate the elements of a TreeSet using Iterator interface. Example import java.util.*; public class IteratingTreeSetTest { public static void main(String[] args) { ... Read More
Introduction Common entrance examination for design (CEED) is a national-level entrance exam performed in India for admission to postgraduate programs in layout. The exam is administered by using the Indian Institute of technology Bombay (IITB) on behalf of the Ministry of Human aid improvement, government of India. The examination assesses a candidate's innovative and hassle-fixing abilities, visual perception, and conversation talents. CEED scores are usual by way of various institutes throughout India that provide guides in layout. The examination is divided into two components- component A is a computer-primarily based test, and part B is a pen-and- paper test ... Read More
Introduction Fragment Cylic Reducncy Check (FCRC) is a method for checking changes and errors in the communication channel. The error messages occur in various programs that are running in the Microsoft Operating system. An error in a file can corrupt a file or folder by extension “.pst”. It can be fixed by easy programming. Definition of FCRC “Fragment Cyclic Redundancy Check” is a basic Data verification method that is run by a computer to check the accuracy of data on hard disk, CD, DVD, etc. These errors arise due to corruption in the hard drive, glitches in files, ... Read More
Introduction Federal Communications Commission (FCC), a separate department of the American federal government. It was established in 1934 to control both national and international broadcasting, television cable, satellite communication, and cable communications. Except for a few prohibitions about vulgarity and defamation, its rules and regulations only apply to the technical features of communication networks, such as frequency and machinery, rather than broadcast content. FCC’s Role in Regulating Communications The United States' communications sector, including wireless communication technology like cell phones, satellite radio, and high-speed internet, is governed by the Federal Communications Commission (FCC). The FCC ensures that public ... Read More
Introduction Foreign Currency Non-Resident Account (FCNR) are NRI accounts regulated by RBI and FEMA. There are three types of NRI accounts NRE accounts, NRO accounts and FCNR accounts. Any person who is an Indian by origin or a citizen of India but not living in India are Non-Resident Indian (NRI) and NRO. An NRI or PIO can open a bank account with any authorised Indian bank for saving and investment in India. It is an excellent opportunity for NRIs to open these accounts in India to get generate income and liberate themselves from currency exchange risk. Definition of ... Read More
Introduction Fiber Channel Protocol (FCP) is a protocol is a set of instructions or rules given by a computer”. Fiber Channel(FC) is a method of carrying information over fibre optic or copper fibre at high speed and low reluctance. FCP is also known as FC i.e. “Fiber channel”. It works on SAN, DAS and NAS topology. It uses up to 128 GBPS speed for data transfer for a distance of 10 Km. Its development started in 1988 as IPI (Intelligent Peripheral Interface) and the draft was completed in 1989. Later ANSI approved FCP in 1994. Definition ... Read More
Introduction Frame Check Sequence (FCS) is an error-detecting code that is added in a frame in the form of a bit in a communication code. Frames are the data that are sent in a network communication channel. These frames send data from source to receiver. FCS is sometimes confused with the recovery process but it is an error detection code. FCS Overview Frame check sequence is used in the “High-Level Data Link Control (HDLC)” error detection process. It is an extra bit of 2 or 4 bytes that are added to frames for checking errors. ... Read More