Virtual memory is the partition of logical memory from physical memory. This partition supports large virtual memory for programmers when only limited physical memory is available.Virtual memory can give programmers the deception that they have a very high memory although the computer has a small main memory. It creates the function of programming easier because the programmer no longer requires to worry about the multiple physical memory available.Virtual memory works similarly, but at one level up in the memory hierarchy. A memory management unit (MMU) transfers data between physical memory and some gradual storage device, generally a disk. This storage ... Read More
To change the azure subscription using PowerShell, we can use the Select-AZSubscription command. When you use this command, you can use either the subscription ID, Subscription Name, or the Tenant ID.ExampleWith Subscription Name,Select-AzSubscription -SubscriptionName 'Visual Studio'With TenantID,Select-AzSubscription -Tenant 'XXXX-XXXXX-XXXXXXX-XXXX'With Subscription ID,Select-AzSubscription -SubscriptionId 'XXXX-XXXXX-XXXXXXX-XXXX'Sometimes on console messages will appear that one or more subscriptions are active. In that case, you can switch the other subscription using the Set-AZContext command and you can use subscription ID or the Name for it.ExampleSet-AzContext -SubscriptionId "xxxx-xxxx-xxxx-xxxx" OrSet-AzContext -SubscriptionName "Visual Studio"
Go-Back-N protocol, also called Go-Back-N Automatic Repeat reQuest, is a data link layer protocol that uses a sliding window method for reliable and sequential delivery of data frames. It is a case of sliding window protocol having to send window size of N and receiving window size of 1.Working PrincipleGo – Back – N ARQ provides for sending multiple frames before receiving the acknowledgment for the first frame. The frames are sequentially numbered and a finite number of frames. The maximum number of frames that can be sent depends upon the size of the sending window. If the acknowledgment of ... Read More
An operating system is the interface between the user and the machine which controls and coordinates the use of the hardware among the various application programs for the various users. Operating System as Extended Machine Let us understand how the operating system works as an Extended Machine. At the Machine level the structure of a computer’s system is complicated to program, mainly for input or output. Programmers do not deal with hardware. They will always mainly focus on implementing software. Therefore, a level of abstraction is supposed ... Read More
The objective of search in Artificial Intelligence (AI) is to find the path to solve different problems. The search in AI can be executed in two ways namely, Forward Reasoning and Backward Reasoning. The most basic difference between the two is that forward reasoning starts with the new data to find conclusions, whereas backward reasoning starts with a conclusion to determining the initial data. Read this article to learn more about Forward Reasoning and Backward Reasoning and how they are different from each other. What is Forward Reasoning? Forward reasoning is a process in artificial intelligence that finds all the ... Read More
An array is always a fixed size. To add value to the array, you need to create a new copy of the array and add value to it. To do so, you simply need to use += operator.For example, you have an existing array as given below.$array = 1, 2, 3, 4, 5To add value “Hello” to the array, we will use += sign.$array += "Hello"Now, we will check the output of the array.We have another method to add value to the array. By Add() operation of the array.$array.Add("Hi")When you use the above method to add a variable in the ... Read More
In Python, a list is an ordered sequence that can hold several object types such as integer, character, or float. In other programming languages, a list is equivalent to an array. Square brackets are used to denote it, and a comma (, ) is used to divide two items in the list. In this article, we will show you how to sort the objects and elements in a list using python. Below are the different methods to accomplish this task − Using sort() method Using sorted() method Assume we have taken a list containing some elements. We will ... Read More
HashMap and IdentityHashMap are the key value data sets which are used to access the key data pairs. More specifically. A HashMap is a Java collection framework which provides the functionality of a proper hash table data set. The map stores the element value as a key or pairs which are the unique identifiers in nature. This map also permits the null values as a non synchronized class. The IdentityHashMap is a special type of hash class by which we handle the rare cases related to the reference-equality. This map compare the keys by using a " = = " operator ... Read More
A HashTable is a compact abstract data set which converts the keys of a map to the values by computing the indexes into an array of slots to enable faster data access. On the other hand, a synchronized map is a Java collection class which is mainly used to synchronize a particular map to make it a thread safe collection and can be applied on a whole object. The map does not contain any null value. Input [ ARB, RDD, KOL, DHKA ] Output Insertion Order of objects in HashTable : [ ARB, RDD, KOL, DHKA ] Insertion Order of objects in Synchronized Map : [ ... Read More
The IdentityHashMap is a special type of hash class by which we handle the rare cases related to the reference-equality. This map compares the keys by using a " = = " operator where the normal hashmap uses the " equals " method for this. A Weak HashMap is a type of map interface where the hash table merges its keys with the weak reference type of values. This type of map class can not be used further just because of the lack of reference pointers. An enum map is a special type of map class which contains only the ... Read More