Questions tagged [threads]
Thread is a form of a process to divide itself into two or more tasks that can be executed concurrently.
146
questions
0
votes
1
answer
29
views
'???' descriptor for thread from Sample of Safari Networking
Having concerns with my macbook's network performance, I decided to check out networking activity. I noticed a huge volume (1.5gb) of sent packets for safari networking even though I am not doing any ...
0
votes
1
answer
1k
views
How do I emulate Intel Thread Director behaviour in Linux not supporting it yet?
My 12th Gen Intel© Core™ i7-1260P (Alder Lake) has 4 performance cores + 4 threads and 8 efficiency cores.
If a multi threaded task is launched, it prefers fastest performance cores, then physical ...
0
votes
1
answer
330
views
How to count the total number of threads used on Mac in command line?
Command-line Number of thread per process on MacOS
This question is about the thread of a process. I want to get the total number of threads on Mac. Can anybody show me the command to get this number?
1
vote
2
answers
371
views
Rsyslog: relay messages from UDP input only
Considering a docker container which receives logs on UDP and forwards to a central logging server using TLS, I was wondering if I could be satisfied with one queue or if I needed several.
Indeed, ...
0
votes
1
answer
44
views
Is there any relation between Process and Processor?
1 Process can have 1 or more threads.
1 or more threads (irrespective of which process they belong to) can run on 1 or more processors.
Is there any relation between Process and Processor? For example ...
0
votes
1
answer
754
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?
0
votes
0
answers
990
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-...
0
votes
0
answers
202
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 ...
1
vote
0
answers
5k
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/...
2
votes
0
answers
111
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 ...
4
votes
0
answers
207
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,...
0
votes
1
answer
3k
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. ...
0
votes
1
answer
293
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
}
}...
0
votes
1
answer
572
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 ...
-2
votes
3
answers
152
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(...
0
votes
1
answer
327
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 ...
1
vote
1
answer
992
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 ...
0
votes
0
answers
63
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 ...
0
votes
1
answer
96
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 ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
395
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. ...
1
vote
1
answer
5k
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
0
votes
1
answer
224
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 ...
1
vote
0
answers
2k
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 ...
0
votes
1
answer
176
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 ...
1
vote
0
answers
204
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 ...
0
votes
2
answers
165
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 ...
1
vote
1
answer
2k
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 ...
1
vote
2
answers
2k
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 $...
0
votes
1
answer
83
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 ...
0
votes
1
answer
390
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 ...
0
votes
1
answer
64
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 ...
5
votes
1
answer
19k
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?
1
vote
0
answers
97
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 ...
-4
votes
1
answer
493
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?
2
votes
2
answers
445
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 ...
0
votes
1
answer
1k
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 ...
2
votes
0
answers
401
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 ...
1
vote
1
answer
6k
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 ...
1
vote
0
answers
45
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 ...
2
votes
2
answers
6k
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 ...
0
votes
2
answers
1k
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 ...
1
vote
0
answers
71
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 ...
8
votes
2
answers
8k
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: <[email protected]>
The second and all following ...
4
votes
1
answer
5k
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 ...
0
votes
0
answers
182
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 ...
-1
votes
1
answer
198
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?
0
votes
0
answers
47
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.
...
-2
votes
1
answer
2k
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 ?
1
vote
0
answers
160
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 ...