Before we introduce the implementation of a synchronization construct, let’s see a metaphor. Suppose you and other students are working on a group project together and you would like to synchronize the process of your work. In fact, you may do the following things to celebrate with others,

  • if you can continue: Are you done?
  • to let others continue: Hey, I am done.

Sometimes, you may find it is terrifying to celebrate with your groupmates if they don’t respond to your messages. …


In this part, we are going to talk about implementing a multi-core system. When it comes to the situation that we have more than 1 core because we need to maintain coherence between more cores, the coherence traffic increases. Therefore, we will meet the following challenges,

  • : When we have more coherence traffic on the bus, the bus only allows us to do one request at a time. Then the bus will become a bottleneck.
  • when we have more cores, we also have more off-chip traffic (i.e. memory traffic). Therefore, we…


Before we discuss consistency, let’s first differ it from coherence. What does is that it defines the order of accesses observable by different threads to . In order to make the data on the same address the same in all the caches containing the corresponding block and in the memory, we have to maintain cache coherence. To allow coherence, we have to allow cache-to-cache transfer between caches.

However, memory defines the order of accesses to . If we have out-of-order reads and writes from different addresses, the reader…


Because we can have multicores and multi-threads that are trying to work together in the same program, we will need synchronization. For example, let’s say we have two threads and what they are doing is counting the occurrences of different letters in an essay. The first thread is called thread A, which will be counting the first half of the document, and the second one is called B, which will count the second half.


Before we talk about cache coherence, let’s first see why do we need to have cache coherence. When we use the shared memory for multicores, we assume that we can always retrieve the latest value from the shared memory. However, this is not the case in reality because each core has its own cache. If one core writes to its cache, and the cache has not written to the shared memory, then other cores will grab the wrong data from the memory if they need this value. …


We can distinguish different types of parallel machines according to how many instruction streams they have and how many data streams these instructions operate on.

  • : logically, this type of machine executes one instruction stream (single program counter), and each operation operates on one data stream. This is really a .
  • : this type of machine executes one instruction stream, but there is more than one data stream they operate on. These are commonly so-called . …


Dependability means the quality of a delivered service that justifies relying on the system to provide the service. So a dependable system is the one that provides the service in a way that makes us expect it to do provide the correct service.

The service we have talked about actually has two definitions.

  • : what the behavior of the system should look like (the )
  • : the that the system provides

We can also conclude that dependability is about…


The storage keeps all the files (i.e. programs, data, settings), virtual memory (because the physical memory is not enough to hold all the virtual memory).


simply refers to the fact that we can access any memory location by address without going through all the memory locations. The opposite definition is a tape, where we have to scan through the whole tape to get a memory location.

There are mainly two types of RAM,

  • : the term “statistic” refers to the fact that SRAM retains its data while the power is supplied. So you are not going to lose any data…

There is a probability we don’t have the libcurl installed in our system. So before we use it, we have to install it first. We can use the following command to test if we have libcurl library installed.

$ curl-config --libs

If the output is,

-bash: curl-config: command not found

This means that we must install it in the first place. We can install the curl library by,

$ sudo apt install libcurl4-nss-dev

Then we can test it again,

$ cd 

If we successfully installed the libcurl, we can get the following output,

-lcurl

However…

Knowledge is power, especially when it‘s shared. Articles @ https://medium.com/adamedelwiess/homepage/home

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store