Run "geth" Miner in Multiple Threads

This section describes how to run 'geth' miner in multiple threads.

If you think your "geth" miner is not running fast enough, you can check its performance and run it with multiple threads.

The performance of your "geth" miner is measured by "hashrate", the number of hashes it can generated per second. Here is the hashrate of my "geth" miner running in a single thread on a 2.30 GHz computer:

> miner.getHashrate()
60764

Now let's improve the miner's performance by running it in 4 threads:

> miner.stop()
true

> miner.start(4)
null

...

> miner.getHashrate()
179138

As you can see the miner's performance increased by about 3 times with 4 threads, comparing to 1 thread.

Let's wait a little bit longer, may be the miner will generate enough hashes to find (mine) one that meets the blockchain hash requirement.

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Testnet - Ropsten network

 Private Ethereum Network

64-Bit "geth" for Private Ethereum Network

 Download and Install 64-bit "geth"

 Run 64-bit "geth" with Miner Module

 View the "pending" Block

Run "geth" Miner in Multiple Threads

 4-Thread Miner not Able to Mine Blocks

 Private Network with Custom Genesis Block

 Transferring Funds between Ether Accounts

 MetaMask - Browser Based Ethereum Wallet

 Managing Ethereum Account

 Mining Ether with Your Computer

 Archived Tutorials

 References

 Full Version in PDF/EPUB