How to modify the number of threads used in mining program
1: material purchase
1.1: motherboard suggestion: the graphics card mining does not need a lot of PCI e bandwidth, and the motherboard with PCI-E 1x can meet the bandwidth requirements. Generally, the motherboard has 3-5 PCI-E 1x interfaces and 1 PCI-E 16x interface. In addition, the motherboard has a large 4Pin power supply interface, which improves the stability to a certain extent. PCI-E 1x needs to purchase the extension cable from 1x to 16x
1.2: recommended models: 280x, 290380x, 390470d, 470480, 4G and above; N card GTX 950106010701080 and above. A card is recommended for eth / etc mining, while n card is inefficient; Zcash mining a card and N card can be, n card has a slight advantage in speed, mainly low power consumption.
you can think of the running of a program as a process.
however, threads are in the process, so what you ask can't be realized.
how many threads in a process are set according to the needs of the program, which has been determined ring development, unless in some special places, such as download, You can choose how many threads to use to download
I hope it will be useful to you
the following is the basic description of mod:
three states are added to the ore:
large amount: more ore is g out
small amount: less ore is g out, which will become a large amount of ore in 20-30 days
vein: the foundation of the ore, which will become a small amount of ore in 10-15 days. If the ore is g out, it will not be regenerated, and a large amount of ore will be g out (knock it hard)
basically, it takes a hoe to dig out a pile of mines, including veins
PS: why should mineral regeneration be set for such a long time? Because most people hang up when they can't finish digging. In fact, the purpose is to affect the balance of the game to the minimum extent. If the regeneration is too fast, people won't be full of prospecting and digging, which will rece a lot of game fun
I forgot to say that there seems to be an automatic mining mod in this area. In theory, that mod conflicts with this mod. There is no test. I have been working all night. I'm too tired. If you want to integrate, you can try it yourself.
Adoption
The number of threads can't be modified. This has been fixed when the CPU was designed
-
hyper threading is a technology developed by Intel, which was released in 2002. The English name of hyper threading is HT Technology, which is also called hyper threading in Chinese
-
hyper threading technology was originally only used in Xeon processors, which was called super threading at that time. After that, it was used in Pentium 4 to mainstream the technology
-
through hyper threading technology, Intel became the first company to provide two logical threads in one entity processor< br />
-
is not what you think, multithreading is to run multiple tasks at the same time, and these tasks are assigned by the windows operating system, belonging to the underlying operation, and cannot be operated by human
-
for a single core CPU, general windows tasks are run in rotation, such as running this task in the first 100 ms, running another task in the next 100 ms, and running multiple tasks alternately. Therefore, for a single core CPU, the efficiency is very low, and the computer is easy to get stuck e to the large amount of tasks, so the multi-core CPU is relatively comfortable in this aspect
-
another example, for example, browsing a web page, if you open multiple web pages, there will be multiple tasks running at the same time. For multi-core CPU, there are both alternating tasks and parallel tasks running at the same time, because the number of CPU cores cannot be unlimited. As long as the number of tasks is greater than the number of CPUs, there will be alternating tasks running, What's more, the operating system itself has many task processes running. So alternate operation is the normal operation of windows tasks< br />
Su
-
XXX (ordinary user)
Su:
unable to set user ID:
resource temporarily unavailable
#
ulimit
- U
1024
from this we can see that the maximum number of threads is 1024
modify the configuration of the maximum number of threads
#
VI
/ etc / security / limits. D / 90 nproc. Conf
the content is as follows:
*
soft
nproc
1024
root < B R / > soft
nproc
unlimited
as can be seen above, all users except root are limited to 1024. Therefore, this problem can be solved by annotating this line or increasing the value. After modification, save and exit. Such modification takes effect immediately