Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles on Trending Technologies
Technical articles with clear explanations and examples
Page Faults in LFU
The Least Frequently Use aka LFU is a concept of page memory management, can also be used as a replacement algorithm. This process take a lead we the particular page needs a replacement when a new page is on the way by the process. LFU is one of the page replacement policy where an user can replace the least frequency of a particular operation page. If the page frequency is same in a process, then it will come first on the replacement list. Here we will take a page sequence of an array of pages denoted as pages[], whose length ...
Read MoreHow to Get Float32 Type Random Number in Golang?
Generating random numbers is a common task in many programming applications. In Go, we can use the math/rand package to generate random numbers. In this article, we will explore how to get a random number of type float32 in Go. Using The Rand Package The math/rand package in Go provides a simple way to generate random numbers. We can use the Float32() function to generate a random number of type float32. Example Here's an example − package main import ( "fmt" "math/rand" "time" ) func main() { ...
Read MoreHow to Generate a Array of Unique Random Numbers in Golang?
In many programming applications, we need to generate an array of unique random numbers. This can be useful for tasks such as creating unique IDs or selecting random items from a list without repetition. In this article, we will explore how to generate an array of unique random numbers in Golang. Using The math/rand Package The math/rand package in Golang provides a simple way to generate random numbers. However, by default, the random numbers generated by the math/rand package are not guaranteed to be unique. To generate an array of unique random numbers, we need to add some extra logic. ...
Read MoreHow to Fix Race Condition using Atomic Functions in Golang?
Race conditions can be a serious problem for developers working with concurrent programming. When multiple threads or processes access a shared resource simultaneously, they can create unpredictable and potentially dangerous results. Fortunately, the Go programming language provides a number of tools for dealing with this issue, including atomic functions. In this article, we'll take a closer look at how to fix race conditions using atomic functions in Go. Understanding Race Conditions Before we dive into atomic functions, let's review what race conditions are and why they're a problem. A race condition occurs when two or more threads or processes access ...
Read MoreHow to find the type of Struct in Golang?
In Golang, structs are a powerful and essential feature that helps in organizing data and improving code readability. A struct is a composite data type that groups together zero or more values of different types. It is a user-defined type that can be customized according to the programmer's needs. Sometimes, when working with large codebases, it can become difficult to keep track of the different types of structs being used. In this article, we will discuss how to find the type of struct in Golang. Using the "reflect" Package The "reflect" package in Golang provides a way to inspect types ...
Read MoreRole of Subnet Mask
Subnetting Subnetting is the technique of dividing a huge network into many smaller parts, these logical divisions in an IP network reduce the network traffic and also achieve better performance of the network path. This is used in large organizations when many host devices are connected to a single network where the routing process is carried out during traffic and also increases security. Each device connected to the subnet communicates with one another by using routers. An IP address is used to classify devices on the network which has two parts, the first part represents a network of the address ...
Read MoreDifference between broadcast and Multicast
Multicast and broadcast are two often used terms in computer networks and refer to two different methods of transferring data from one source host to multiple destination hosts. Multicast means sending data from one source host to a particular group of hosts, while the broadcast is sending a data packet to all the hosts which are present in the same network. The same network means the network of the source host. In this article, we will be exploring the differences between the broadcast and Multicast in detail, as their benefits, drawbacks, and the situation in which one method is preferred ...
Read MoreRake Receiver
Rake generally means the tool used in the garden to get all the fallen leaves. In wireless communication, a rake receiver is used in CDMA systems and the radio signal when reflected from any type of obstacle will travel with a different type of amplitude, phase, and delay. The people behind the rake receiver are Price and Green. This is a type of receiver that uses radio signals and is divided into different signals then it uses the correlates to compare the received signal with the original signal. Rake Receiver Definition Rake Receiver is used to oppose the characteristics of ...
Read MoreGrid Computing
The term “Cloud Computing” was proposed in the year 1950s that gives internet-related services and it emerged from distributed computing to the current technology called cloud computing. Then Grid computing was proposed in the year the 1990s and it came into existence after the invention of cluster computing. As the computing structure includes different computers or nodes, in this case, the different nodes are placed in different geographical places but are connected to the same network using the internet. Grid Computing Grid Computing comes under the evolution of cloud computing which includes all the nodes that are located in different ...
Read MoreAdvantages and Disadvantages of GPS
GPS stands for Global Positioning System which was initially created for military usage. The first fully functional GPS was in 1995 in the US and was then included in vehicles in 1996. It is nothing but a group of satellites that revolves around the earth and recursively send messages to the earth's surface which are received by various devices to calculate the optimized location of the receiving device, this calculation requires information from at least 4 satellites which includes the coordinate positions and clock deviations. This is known as space technology. It is implemented everywhere on the earth without 100% ...
Read More