Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [threads]

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

0
votes
0answers
6 views

undefined reference to `pthread_mutex_unlock'

I was trying to install a software ezspectrum for my scientific analysis. https://github.com/iopenshell/ezSpectrum I just cloned the link above and got the necessary dependencies then try to install ...
-4
votes
1answer
29 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
42 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
11 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 ...
0
votes
0answers
10 views

apache performance optimization - threads maxclients maxrequestworkers

I've been wanting to increase the the number of users/requests that my application can handle. Application runs over apache server. I've quadrupled the number of connections ( maxclients * serverlimit ...
0
votes
0answers
11 views

can a process thread split to more then 1 processor core? [duplicate]

when im looking into process explorer, and my selected process have 1 Thread can this one Thread use more then 1 processor core? Sorry for my english.
2
votes
0answers
19 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
0answers
12 views

these programs withering away my harddrive while idling - is that normal?

I just noticed excessive harddrive access because I moved my browser profile away from my SSD and I can hear my (magnetic) drive working all the time now. While idling, this can't be ok? https://i....
0
votes
1answer
84 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
12 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
124 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
486 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
64 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 ...
0
votes
0answers
44 views

Multi-threaded concurrent INSERT on SQLite3 DB

The SQLite3 documentation seems to clearly indicate multiple concurrent threads can read from the same SQLite3 database at the same time, but it is not so clear about writes. Can I write (INSERT/...
1
vote
0answers
24 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 ...
0
votes
2answers
458 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 ...
1
vote
1answer
988 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
84 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
vote
0answers
36 views

Which option is correct: [closed]

I had yesterday an exam, one of the exercises was: Which thread is faster in a context switching. a) Kernel thread from the same process. b) Kernel thread from different process. c) User thread ...
-1
votes
1answer
55 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
27 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
294 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
124 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 ...
1
vote
1answer
2k 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
36 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
1k 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
602 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
47 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
436 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
148 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 ...
5
votes
1answer
2k 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
138 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 !...
5
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
5k 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
230 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
2k 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
770 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
763 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
143 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
47 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
353 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 ...
3
votes
3answers
2k views

High CPU from ntoskrnl.exe during idle on GetStackLimits

I'm having a weird bug in Windows 10. After 5 minutes of idle, my cpu goes high. I used Win Performance Analyzer and found that it happens inside the ntoskrnl.exe on the thread GetStackLimits. I ...
30
votes
2answers
16k views

How do priorities work on task-manager and when should/n't I set this?

I've been setting some processes priority in order to see what it actually happens, but, guess what... Nothing; it all runs the same way... I found on Google that priorities are not really linked ...
2
votes
2answers
2k views

Is there a way to “hack” windows 10 to use its entire CPU power in one task or process?

I work with applications like Blender, and, according to "Task Manager" and "Resource Monitor", windows uses less than 40% CPU (at most, with the option below) and less than 30% memory when I render a ...
4
votes
1answer
873 views

How is multiprocessing related to cores and threads?

I am interested in the Intel Xeon E5-1650 v3 and the Intel Xeon E5-2643 v3 processors. They both have 6 cores and a clock speed of ~3.5GHz. However, the specifications from CPU-world (screenshot) show ...
0
votes
1answer
5k views

Force ffmpeg to use 100% of CPU

I'm using ffmpeg to extract frames from video, but the process is so slow. Looking at CPU usage I see that ffmpeg use only 50% of my CPU. I've tried also to add -threads 4, but it seems it doesn't ...
0
votes
1answer
185 views

Kernel Thread that won't exit, Load Average +1

So I have a new server that is up and running with Centos 6, and the load average is stuck hovering around 1, even when the machine is nearly idle. I reviewed the process table and found this running:...
3
votes
1answer
205 views

What does the suffix letter mean in the PRI column of “ps -M pid” under MacOS/X?

When I execute this command under MacOS/X: ps -M 9358 I get this output: USER PID TT %CPU STAT PRI STIME UTIME COMMAND jaf 9358 s009 0.0 S 31T 0:00.21 0:00.32 /Users/jaf/...
5
votes
2answers
11k views

Why Intel Core i3 processor with enough free RAM and low CPU usage become very slow?

In a computer with Intel Core i3 and 4GB of RAM running Windows 8.1 build 9600, in conditions I expect no have performance problems it become very very slow and it's close to freeze (or even freeze it)...