Token Bucket Algorithm in Computer Networks

Bhanu Priya
Updated on 02-Sep-2023 12:29:03

81K+ Views

Token bucket algorithm is one of the techniques for congestion control algorithms. When too many packets are present in the network it causes packet delay and loss of packet which degrades the performance of the system. This situation is called congestion.The network layer and transport layer share the responsibility for handling congestions. One of the most effective ways to control congestion is trying to reduce the load that transport layer is placing on the network. To maintain this network and transport layers have to work together.The Token Bucket Algorithm is diagrammatically represented as follows −With too much traffic, performance drops ... Read More

Remove Underline from a Link in HTML

Lokesh Badavath
Updated on 02-Sep-2023 12:27:12

53K+ Views

We use inline style attribute with the CSS property text-decoration to remove underline from a specified link in HTML. Syntax Following is the syntax to remove underline from a link in HTML. HTML tutorial Example Following is the example program to remove underline from a link in HTML. DOCTYPE html> HTML-HyperText Markup Language HTML tutorial Example DOCTYPE html> instagram login instagram login Example Following is another example program to remove underline from a link in HTML. DOCTYPE html> HTML Text Decoration About Our Team comprises of programmers, writers, and analysts.

JavaScript Sleep Function

vineeth.mariserla
Updated on 02-Sep-2023 12:26:06

53K+ Views

Sleep()With the help of sleep() we can make a function to pause execution for a fixed amount of time. In programming languages such as C and PHP we would call sleep(sec). Java has thread.sleep(), Python has time.sleep() and Go has time.Sleep(2 * time.Second).JavaScript doesn't have these kinds of sleep functions. But we should thank promises and async/await function in ES 2018. Because these features have helped us to use sleep() as easy as possible. Let's discuss it in a nutshell.syntax-1sleep(Time in ms).then(() => { //// code })We can use the sleep function with then call back as shown above.syntax-2const work = async () => { await sleep(Time in ... Read More

Difference Between Analog and Digital Signal

Manish Kumar Saini
Updated on 02-Sep-2023 12:21:48

83K+ Views

An electrical or electromagnetic quantity (current, voltage, radio wave, micro wave, etc.) that carries data or information from one system (or network) to another is called a signal. Two basic types of signals are used for carrying data, viz. analog signal and digital signal.Analog and digital signals are different from each other in many aspects. One major difference between the two signals is that an analog signal is a continuous function of time, whereas a digital signal is a discrete function of time.This article explains all the significant differences between analog and digital signals along with a brief description of ... Read More

Hub and Switch in Computer Network

Moumita
Updated on 02-Sep-2023 12:19:27

62K+ Views

HubsA hub is a physical layer networking device which is used to connect multiple devices in a network. They are generally used to connect computers in a LAN.A hub has many ports in it. A computer which intends to be connected to the network is plugged in to one of these ports. When a data frame arrives at a port, it is broadcast to every other port, without considering whether it is destined for a particular destination or not.SwitchesA switch is a data link layer networking device which connects devices in a network and uses packet switching to send and ... Read More

Difference Between System Software and Application Software

Kiran Kumar Panigrahi
Updated on 02-Sep-2023 12:16:02

69K+ Views

Computer software is a set of instructions or programs instructing the computer to do specific tasks. Software is basically a generic term used to describe computer programs. In general, scripts, applications, programs and a set of instructions are all terms often used to describe a software. On the basis of language in which software is developed and platform which is required for its execution, we can group different types of software into two categories: System Software and Application Software. Read through this article to find out more about System Software and Application Software and how they are different from ... Read More

Get Data Type of MySQL Table Columns

Anvi Jain
Updated on 02-Sep-2023 12:13:53

48K+ Views

You can get the MySQL table columns data type with the help of "information_schema.columns".The syntax is as follows −SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where table_schema = 'yourDatabaseName' and table_name = 'yourTableName'To understand the above syntax, let us first create a table −mysql> create table DataTypeDemo −> (    −> Id int,    −> Address varchar(200),    −> Money decimal(10, 4) −> ); Query OK, 0 rows affected (0.60 sec)Apply the above syntax to get the MySQL columns data type. The query is as follows −mysql> select data_type from information_schema.columns where table_schema = 'business' and able_name = 'DataTypeDemo';The following is the output ... Read More

Remove All Rows Having NA in R

Nizamuddin Siddiqui
Updated on 02-Sep-2023 12:07:50

77K+ Views

To remove all rows having NA, we can use na.omit() function. For Example, if we have a data frame called df that contains some NA values then we can remove all rows that contains at least one NA by using the command na.omit(df).That means if we have more than one column in the data frame then rows that contains even one NA will be removed. Check out the below Examples to understand how it works.Example 1Consider the below data frame −x1

C Program for Selection Sort

sudhir sharma
Updated on 02-Sep-2023 11:53:29

104K+ Views

The selection sort is assaulting algorithm that works bye buy a finding the smallest number from the array and then placing it to the first position. the next array that is to be traversed will start from index next to the position where the smallest number is placed.Let's take an example to make this concept more clear.We have an array {6, 3, 8, 12, 9} in this array the smallest element is 3. So we will place 3 at the first position, after this the array will look like {3, 6, 8, 12, 9}. Now we will again find the ... Read More

Different Types of Interrupts

Bhanu Priya
Updated on 02-Sep-2023 11:49:17

96K+ Views

An interrupt is a signal from a device attached to a computer or from a program within the computer that requires the operating system to stop and figure out what to do next.Interrupt systems are nothing but while the CPU can process the programs if the CPU needs any IO operation. Then, it is sent to the queue and it does the CPU process. Later on Input/output (I/O) operation is ready.The I/O devices interrupt the data which is available and does the remaining process; like that interrupts are useful. If interrupts are not present, the CPU needs to be in ... Read More

Advertisements