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
1
vote
0answers
45 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
2answers
39 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 ...
0
votes
1answer
109 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
1answer
254 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
0answers
61 views

debugging a running daemon with GDB

I want to debug a running daemon with the GDB. I have the process id of respective process. I typed : gdb attach process id info threads I am getting the list of threads. * one is the current one ...
0
votes
1answer
68 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
1answer
40 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
0answers
16 views

Apache Worker Threads' Retry Option

we have an Apache 2.4 Server using mod_proxy, as far as Apache is concerned, backend is a local socket, and the server itself listens to a specific port on the outside. But when there is a heavy ...
0
votes
1answer
52 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 ...
0
votes
0answers
19 views

Forcing Single Thread from Multi-threaded Applications

I'm currently working on a packet generator, however, before moving to multi-threading from my single thread state, I thought it would be wise to compare my current results with competitors. But as ...
1
vote
1answer
3k 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?
0
votes
0answers
11 views

MS Word on Macbook keeps same file in different threads

We have a problem with MS Word 2016 on a macbook pro (2011, i5 dual core processor, SSD). Word shows is that documents sometimes cannot be changed and saved, and reopening a file and then changing it ...
1
vote
0answers
24 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 ...
0
votes
0answers
22 views

what happens if stack size (ulimit -s) is 4GB on RHEL 7.2?

There is a System with RHEL 7.2. The stack size is set to 4194304 kbytes as returned by the command ulimit -s. Is a thread affected by that size? Is is the reason that pthread_create returns 11 (...
-4
votes
1answer
100 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?
1
vote
1answer
56 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
1answer
211 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
0answers
121 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 ...
0
votes
1answer
2k 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
0answers
19 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 ...
0
votes
0answers
201 views

rsync spawning excessive threads

The objective is to use rsync to synchronize a daily single .gz backup file. The command is: rsync -auvx /backup/source/*.gz /save/dest/ The files are on two separate systems; the source is mounted ...
1
vote
2answers
2k 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
2answers
96 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
0answers
33 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 ...
3
votes
2answers
3k 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 ...
2
votes
1answer
2k 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
0answers
142 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
1answer
77 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
0answers
31 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
1answer
765 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
0answers
128 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 ...
2
votes
1answer
4k 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 ...
0
votes
1answer
41 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 ...
0
votes
2answers
2k 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?
0
votes
0answers
727 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 ...
1
vote
0answers
49 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 ...
0
votes
0answers
2k views

Kworker thread has high CPU usage

I have a kworker thread with high cpu usage, which is causing my touchscreen to be very lag-y and unresponsive. Running a beaglebone with Debian. uname -r 4.1.15-ti-rt-r43 pid user pr ni ...
0
votes
0answers
566 views

Get cpuid for a particular process thread using ps

How do I get the ps command to output just the cpuid if I know the pid and tid? I can use ps -e -mo pid,tid,psr | grep Thread_Id to display the current cpu the thread is running on, but is there a ...
0
votes
0answers
226 views

How much do IDEs take advantage of multiple CPU cores?

So, how much do IDEs, for instance Android Studio or Eclipse, take advantage of multiple threads and CPU cores? That is, how much faster do they run on, say, a quad-core CPU compared with a dual-core ...
7
votes
1answer
3k views

Difference between normal and watched threads

AFAICS, If I ignore a thread, current and further messages in it are automatically marked as read. For a message in a normal thread, no action is taken - i.e. upon a new message arrival, I get a ...
1
vote
0answers
328 views

How to auto create a dump of a process when a wait chain is stuck for more than x seconds?

When a process hangs temporarily and resource monitor/task manager show there is something stuck in the wait chain, I can use for example Process Explorer to create a dump of it open WinDbg and run !...
6
votes
2answers
1k views

limit priority/threads for Gradle/Android Studio builds?

When Android Studio builds my project, it easily eats up all my 8 cores. I'd like to be able to fluently browse the internet while my app is compiling. Is there a way I can set Gradle's java processes ...
1
vote
2answers
7k views

How do I kill a specific thread in Windows?

The process explorer.exe has a thread with "start address" starting with "windows.immersiveshell.serviceprovider.dll". It takes a lot of processing power. Additionally, after waking up from sleep it ...
0
votes
1answer
245 views

Kernel threads and process virtual address

If the kernel is spawned as threads and resides in the memory then how could the ps command identify them if those are not normal process and i give you more look here: root 2 0 0 févr....
2
votes
1answer
3k views

How to get a thread count for running process in Win8?

How do I display the column that lists the thread count for the running process in the task manager in Win8? The View menu doesn't seem to have any option that would allow to add nor does right ...
0
votes
2answers
1k views

Process/thread creation and destruction history or ledger on Mac OS X

I'm seeing some strange threading behaviour in my Mac (Yosemite 10.10.4). The number of threads shoots up and then goes back down again. Sometimes it stays extremely high, thus exceeding maxproc and ...
0
votes
1answer
1k views

How to close one explorer.exe's window instead of ending the whole process

I use MTP to transfer photos from my Android to my PC and then the whole explorer.exe gets stuck in a waiting loop and I can't close that one window except by terminating the process and losing the ...
0
votes
0answers
167 views

Faster 32 bit execution with Hyperthreading disabled?

I am using numpy-Python scripts that take a lot of computing power to execute. The scripts themselves are already quite well written an I can say that I cannot really improve their speed by writing ...
0
votes
0answers
50 views

Single service using thousands of threads

I have an windows application that is having performance and stability issues that our company has bought from a vendor. I noticed the application was using 1,000 - 4,000 threads. Could this be ...
0
votes
1answer
425 views

No C++ pthread support in build farm?

I'm trying to get some code compiling in a build farm. When I build it on my development machine things go fine: checking if C compiler and POSIX threads work as is... no checking if C++ compiler and ...