Here we will see what will be the effect of pthread_self() in C. The pthread_self() function is used to get the ID of the current thread. This function can uniquely identify the existing threads. But if there are multiple threads, and one thread is completed, then that id can be ... Read More
The pthread_equal() function is used to check whether two threads are equal or not. This returns 0 or non-zero value. For equal threads, it will return non-zero, otherwise it returns 0. The syntax of this function is like below −int pthread_equal (pthread_t th1, pthread_t th2);Now let us see the pthread_equal() ... Read More
The threa_cancel() is used to cancel one particular thread by the thread id. This function sends one cancellation request to the thread for termination. The syntax of the pthread_cancel() is like below −int pthread_cancel(pthread_t th);Now, let us see how to cancel threads using this function.Example#include <stdio.h> #include <unistd.h> #include <sys/types.h> ... Read More
Here we will see the effect of nextafter() and nextforward() functions in C or C++. These functions are present in the math.h or cmath library.if the functions are like nextafter(a, b) and nextforward(a, b). These functions are used to find the next representable value after a in the direction of ... Read More
Here we will see some interesting facts about C programming. These are like below.Sometimes the case labels of some switch statement can be placed inside if-else statement.Example#include <stdio.h> main() { int x = 2, y = 2; switch(x) { case 1: ... Read More
Already own bitcoins but want either just exchange with some conventional currency or simply get rid of them considering them mere a bubble of widening hype. However, it is not as easy as buying them. Got lines of stress on your forehead? Do not worry! Here is the complete guide ... Read More
This might fall upon like a shock on those who think that only cash can be transact from an ATM. In this era of crypto and digital currency, things have taken a leap now. Thanks to technology! As of April 2019, there are more than 4, 518 bitcoin ATMs across ... Read More
Ethereum Mining GuideEthereum Blockchain BasicsAs we all know, cryptocurrency mining is a process of solving complicated mathematical puzzles and miners play a crucial role in any cryptocurrency network as they spend their time and computing power to puzzle out those math problems, giving a ‘proof of work’ for the network, ... Read More
From a connoisseur to a novice who deal in Bitcoin have a number of questions in terms of the security of this currency. However, they should not be worried because crypto is securer than existing currencies, banks, and other financial institutes.Thanks to Blockchain technology, which is backing it. Transactions are ... Read More
Before we talk about Ethereum let us first understand the concept of Decentralized network of Bitcoin which laid the foundation for the following Decentralized networks. Bitcoin digital currency was invented by Satoshi Nakamoto in 2009 as using a decentralized and transparent network.Bitcoin uses Cryptography + Proof of work + Decentralized ... Read More
Cryptocurrency is entirely dependent on Block Chains to maintain their transactions. A block is like a page of a ledger book where some transactions are written in ink, permanent which cannot be altered. A block typically consists of transactions of bitcoin or any other cryptocurrency and the details of transactions ... Read More
Block Chain is the most important component of any cryptocurrency network. Cryptocurrency is based on distributed, transparent public ledger where all the transactions ever made on a cryptocurrency are noted in the blocks and added to the block chain. Miners get attractive rewards to verify and create a new block ... Read More
Cryptocurrency like Bitcoin uses the Block chain as a decentralized, distributed, public digital ledger that records all the transactions of the Bitcoin. Block Chain has a unique feature of storing the value of previous block as a hash value in the current block, which makes it impossible to alter any ... Read More
In C++, there is no direct way to check the environment architecture. There are two Macros for Windows systems, that can be used to check the architecture. These macros are _WIN64, and _WIN32. When the system is 64-bit, then the _WIN64 will be 1, otherwise the _WIN32 will be 1. ... Read More
Here we will see how to initialize the const type member variable using constructor?To initialize the const value using constructor, we have to use the initialize list. This initializer list is used to initialize the data member of a class. The list of members, that will be initialized, will be ... Read More
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more