Questions tagged [threads]

Thread is a form of a process to divide itself into two or more tasks that can be executed concurrently.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Are the threads in each process limited to 1 cpu?

On a multi CPU machine, I understand that 1 process runs on 1 CPU. So does this mean that the threads in each process are limited to 1 cpu only?
user avatar
  • 182
0 votes
0 answers
108 views

Why does this python script run normally when started manually but give an error when run on boot as a service on Ubuntu 20.04?

I made a bot for cryptocurrency trading which works normally when I start it manually, but when you automate the operation of the Ubuntu service it starts with the following error: end at Sun 2022-04-...
user avatar
0 votes
0 answers
57 views

RAID0 SSD array write speed and multithreading

I have a RAID0 array of 20 SSD disks and each SSD has a max write speed of 530 MB/s. The PCIexpress controller is 8x. The array is mapped to a virtual disk (D) formatted with NTFS in Windows 10 I was ...
user avatar
0 votes
0 answers
947 views

RuntimeError: can't start new thread

I'm running into an issue where running multiple instances of the same Python program on my server is causing some of the jobs to throw the following error: File "/home/joe/workspace/...
user avatar
2 votes
0 answers
37 views

Excel not detecting proper amount of cores

Has anybody came across how to get excel to detect the proper amount of cores when on a high core count machine. I have a EPYC VM with 32 cores assigned, and Excel only detects 2 for some reason. When ...
user avatar
4 votes
0 answers
126 views

Console program randomly freezes

On my Windows10 laptop, I run a simple USB camera snapshot program, commandcam.exe (from https://batchloaf.wordpress.com/commandcam/), in a console .cmd script, which has one line: FOR /l %%i in (1,1,...
user avatar
  • 141
0 votes
1 answer
953 views

ffmpeg '-i pipe:' and 'thread_queue_size' -- managing a pipe

I've discovered a thread_queue_size number that seems to work on my system for this use-case but I'll test more (or repeat tests) to help the cause if someone can suggest something. Please advise. ...
user avatar
0 votes
0 answers
94 views

How do I see java thread names in Process Explorer?

I have named a thread in my program as "Input Acceptor". userInputThread = new Thread("Input acceptor") { public void run(){ while(true) //dosomething } }...
user avatar
0 votes
1 answer
48 views

How can I identify "most thread hungry" applications/services on my system?

In htop, I see over 1500 threads. How do I know their distribution related to what is running on the machine? It is remarkable that only 2 are running; so maybe a lot of CPU time is wasted just to ...
user avatar
  • 451
-2 votes
3 answers
78 views

Can this Intel processor multi-process 4 or 8 threads?

I am helping a friend who is trying to run multiple threads on a system with an Intel Core i3-3217U processor. According to Intel's website, that processor has 2 cores which support 4 threads per core(...
user avatar
0 votes
1 answer
70 views

How to setup or where to find a single-threaded browser?

For test purpose I want to limit Firefox or any other browser to one to maximally ten threads, but can't find any docu guiding this. Alternative solution I guess would be an old single-threaded FF ...
user avatar
  • 202
1 vote
1 answer
68 views

does the generation of a processor affect its speed or its the number of cores?

Am planning to buy a desktop for gaming and recently came across two processors, both are intel core i5, but one is 4th generation and the other one is third generation. These are the models... core ...
user avatar
0 votes
0 answers
44 views

How To Add Seconds To Date/Time Format of Prime95 Logging?

Prime95's default log format is MMM dd hh:mm e.g. Feb 26 07:16. I am using Thread Switcher for stability testing which works well switching every 5 seconds. I've had to increase this to 120 seconds in ...
user avatar
0 votes
1 answer
39 views

What happens when exception occurs in a thread in tomcat

I want to know how Tomcat works. As I know Tomcat assigns a thread when receiving a request from clients. Then what happens when exception occurs in a thread in tomcat? All threads in tomcat die due ...
user avatar
  • 123
0 votes
1 answer
364 views

How many threads can I engage at the same time?

I was recently handed a new Macbook Pro with Quad-Core Intel Core i5 (1.4 GHz) listing 1 processor and 4 total number of cores, with 8 GB Memory and Hyper-Threading technology to perform some MRI ...
user avatar
0 votes
0 answers
194 views

Is it possible to Kill Thread in Windows by "Start adress"?

I want to kill the Thread on startup. I am running windows 10. On every restart the thread ID (TID) changes, I can run "Proces Hacker" comand line utility, to kill Thread But It has new TID. ...
user avatar
1 vote
1 answer
1k views

How to get top 5 highest CPU consuming processes and their thread count using powershell command

How to get top 5 highest CPU consuming processes and their thread count using powershell command? Need values of CPU, ProcessName, PID, Thread count
user avatar
  • 11
0 votes
1 answer
123 views

What's the point of using more CPU threads than the number of CPU virtual cores when compressing with 7-Zip on Microsoft Windows?

What's the point of using more CPU threads than the number of CPU virtual cores when compressing with 7-Zip on Microsoft Windows? E.g. in the following screenshot, I have 6 CPU physical cores, 12 CPU ...
user avatar
1 vote
0 answers
1k views

What does ntdll.dll!LdrAccessResource do? It's hogging my CPU in Windows 10

I've had this problem for about a year (I don't want to reinstall Windows because it's too much work, and my C-drive backups are too new so they contain the problem too). I've upgraded Windows 10 ...
user avatar
  • 139
0 votes
1 answer
79 views

Multiple Chrome Threads But Low CPU Used, how to allow chrome using more cpu?

I'm using an AMD EPYC 7502P 32c/64t. I'm running a bot that opens multiple Chrome instances. I'm running over 200 threads. For some reason, I'm using only 20% of the CPU power. Chrome is not really ...
user avatar
1 vote
0 answers
120 views

Why can't my threads fork?

I recently started renting a VPS, it's running Ubuntu Server 18.04.4 LTS on 8GB of RAM. I only ever used it to run a small (SpigotMC) Minecraft server. When the JRE for the server is not running all ...
user avatar
0 votes
2 answers
105 views

What is the optimal number of CPU-heavy data mining jobs to run in parallel? [closed]

I have a CPU heavy data mining job that's parallelizable. Each job run takes ~10 minutes. The job isn't heavy in IO, it's mostly heavy in CPU compute. I have a 32-core rig with 2 threads per core and ...
user avatar
1 vote
1 answer
1k views

How can every thread have its own register?

Threads shares instruction, global and heap regions but has its own individual stack and registers. How can every thread in a process have its own register, when number of registers is final and ...
user avatar
  • 1,939
1 vote
1 answer
1k views

Why do higer end server cpu typically have slower single thread performance?

Something I saw many times and which is confirmed by multiple benchmarks: Xeon cpu and more generally Intel cpu targeting the server market have slower per thread performance than a CoreX cpu. Even a $...
user avatar
  • 1,680
0 votes
1 answer
76 views

Do single cores with higher clock perform faster than multiple cores with lower clock speeds?

First of all, let me specify my use case. I use Xampp on locahost to develop websites on my desktop, usually Drupal or Wordpress sites. My goal is to have this work as fast as possible, as in ...
user avatar
0 votes
1 answer
107 views

Less Threads or More Swap Space?

I am running multiple terminal cmds using threads in Python (don't make fun of me, there is a reason). These cmds sometimes overpower the available memory and I have been forced to increase my swap ...
user avatar
0 votes
1 answer
59 views

Do multi-core processors have internal hardware for randomly changing in which core the instructions are executed?

A friend of mine says that a process always jumps between cores even if you pin a process to a specific core within operating system. He says that the processor manufacturers do this so that the ...
user avatar
  • 301
4 votes
1 answer
14k views

Maximum threads limit per process in windows 10?

I have a programs that works with threads. I want to know what is the maximum threads limit per process in windows 10 or what is the maximum threads windows 10 can handle?
user avatar
  • 143
1 vote
0 answers
64 views

java thread dump analysis

For context: we have been having some issues with garbage collection where we see it taking 15-40 seconds, during this time the application is in a 'paused' state. Here's what we see in our gabage ...
user avatar
  • 11
-4 votes
1 answer
225 views

Difference in single thread performance between 2 CPU's [duplicate]

What’s the difference in single thread performance between Intel(R) Xenon(R) CPU E5-2697 v2 @ 2.70GHz 2.69 GHz & Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz?
user avatar
  • 11
2 votes
1 answer
188 views

Why so few threads on a v-server?

I have a v-server with 2 cores and 4GB RAM. There are running different applications like SCM-manager and a few other small application on the system. Yesterday i tried to run one more c++ program an ...
user avatar
  • 21
0 votes
1 answer
574 views

correct value of maxRequestWorkers

I've set the value of maxRequestWorkers to 4000 in the apache2.conf file. But when i run the apache2buddy perl script the reported value is 150 for maxrequestworkers. How does apache2buddy perl ...
user avatar
  • 1
2 votes
0 answers
267 views

Making sure that cron does not run multiple instances of the same Python script in separate threads

I have a crontab file with a job that runs a Python script every 5 minutes. The script looks into one folder, checks if there are any files that have been placed in there between last and current runs ...
user avatar
1 vote
1 answer
5k views

How many threads can I run in my program?

I have a python program that uses the threading module and runs multithreads that executes a function. The number 8 below is the number of threads in the program but I need to know what is the number ...
user avatar
  • 1,037
1 vote
0 answers
38 views

Apache Nutch hangs on a url during fetch cycle indefinitely [closed]

I am running Nutch 1.15 in distributed Hadoop mode, when it tries to fetch a file (185 MB) in this particular case, and it hangs with aborted threads. Then, in next cycles of Fetch Data, it will try ...
user avatar
2 votes
2 answers
5k views

Is it possible to merge CPU cores?

Back in the past there was something called hyperthreading where a single CPU core acted like two cores. But is it possible to merge two CPU cores to an single one to improve performance on programs ...
user avatar
0 votes
2 answers
477 views

How does multithread work when hardware has 4 cores and software app has more than 4 threads

Let's say I have a processor with 4 cores and 4 threads and an application with 20 threads that I need them to make constant checkings (let's say they are events), how does the processor run all ...
user avatar
  • 333
1 vote
0 answers
43 views

How to parallel windows pc in same network?

I have some windows pc in my local network, each of them have 8 cores cpu. I have program that takes lot of cpu resource, so I want to parallel it on all of the pc. Right now I running my program ...
user avatar
6 votes
2 answers
6k views

What does Outlook need to recognize a thread?

I have a piece of software that is sending multiple e-mails. The first one has the header Message-ID: <153495492389.29001.486258560116169081@server.example.com> The second and all following ...
user avatar
  • 243
3 votes
1 answer
4k views

Changing Windows thread sheduler timeslice

This question is about possibility of tweaking windows kernel towards real-time like oses, and ways of doing it. It is quite specific narrow topic that requires deep level of knowledge - you either ...
user avatar
  • 319
0 votes
0 answers
179 views

WmiPrvSE excess cpu on Windows 7 32bit [duplicate]

One of my desktops is running Windows 7 (32bit). I am seeing unexpectedly high CPU load for the WmiPrvSE process. Using ProcessExplorer, I can see that it is just one thread that is alternately ...
user avatar
  • 101
-1 votes
1 answer
129 views

If a thread is just another process, how does it reduce the CPU’s workload and handle thrashing?

What does it mean when they say that a thread is a light-weight process? If it's just another process, how does it reduce the CPU's workload?
user avatar
0 votes
0 answers
34 views

what's the state of the process when it is multithread?

The state of a process is defined by the current activity of that process and is located in the PCB. new List item running waiting ready terminated And a thread have its own state too, in the TCB. ...
user avatar
  • 101
-2 votes
1 answer
1k views

What is the difference between a Service and a Process? [duplicate]

From a unix admin standpoint what is the difference please between those terminologies : Service, Process, Thread, Task, Job, Daemon ?
user avatar
1 vote
0 answers
144 views

Firefox creates ~65 threads for 8 tabs

I was looking at the output of htop and noticed that Firefox had about 65 threads listed. I only have about 8 tabs going, so I am trying to understand why so many threads have been created and seem to ...
user avatar
3 votes
1 answer
6k views

Cannot edit /proc/sys/kernel/threads-max

I am currently building a stress testing tool, and as such I need a pretty massive number of threads. I already went through all settings to raise the limit, but there is one last setting, the upper ...
user avatar
0 votes
1 answer
47 views

If Affinity on Windows is set on 1 thread only, does it eliminate problems with thread-unsafe software?

Say I have a third party software executable I can't really edit or alter in anyway or debug properly. I suspect it has issues with multithreading in a way that it segfaults the application due to ...
user avatar
  • 2,416
0 votes
2 answers
3k views

Threads (versus cores) and rated CPU clock speed, what is the effect?

If my CPU is rated at 2GHz, and has 4 cores supporting 8 threads, are all 8 threads running at the rated clock speed? Or are they running at 1GHz each since there are twice as many threads as cores?
user avatar
  • 622
0 votes
0 answers
785 views

Setting process priority in Windows Task Manager on Windows Server 2008 R2

I am trying to change the base priority to "Above Normal" for a process using Task Manager in Windows Server 2008 R2, but the value keeps changing back to "Normal" in the Base Priority column (and ...
user avatar
  • 323
1 vote
0 answers
58 views

How to log/get a report on threading performance in Windows?

So with programs like Process Explorer and Process Hacker you can see what the individual threads from a given process are up to. However as far as I can tell its just an active monitor with no way to ...
user avatar