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
3 votes
1 answer
7k 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 ...
Anarkopsykotik's user avatar
0 votes
1 answer
83 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 ...
j riv's user avatar
  • 2,566
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?
posfan12's user avatar
  • 662
0 votes
0 answers
850 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 ...
Lou's user avatar
  • 323
1 vote
0 answers
118 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 ...
user1086516's user avatar
1 vote
0 answers
3k 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 ...
avelampudi's user avatar
0 votes
0 answers
1k 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 ...
vreg's user avatar
  • 1
0 votes
0 answers
414 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 ...
Marko J.'s user avatar
14 votes
1 answer
6k 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 ...
ivan_pozdeev's user avatar
  • 1,902
1 vote
0 answers
819 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 !...
Gaia's user avatar
  • 6,999
6 votes
2 answers
2k 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 ...
quezak's user avatar
  • 233
2 votes
2 answers
12k 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 ...
Anixx's user avatar
  • 669
0 votes
1 answer
300 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....
user avatar
2 votes
1 answer
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 ...
haku's user avatar
  • 148
0 votes
1 answer
2k 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 ...
raulk's user avatar
  • 169
0 votes
1 answer
2k 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 ...
Foxcat385's user avatar
  • 113
0 votes
0 answers
240 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 ...
adrienlucca.net's user avatar
0 votes
0 answers
62 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 ...
anthonybell's user avatar
0 votes
1 answer
625 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 ...
John Westlund's user avatar
42 votes
2 answers
53k 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 ...
Pablito's user avatar
  • 574
2 votes
2 answers
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 ...
Ignorante's user avatar
  • 403
4 votes
1 answer
2k 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 ...
Borealis's user avatar
  • 235
2 votes
1 answer
13k 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 ...
Hyperion's user avatar
  • 569
0 votes
1 answer
304 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:...
Aaron R.'s user avatar
  • 101
4 votes
1 answer
553 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/...
Jeremy Friesner's user avatar
4 votes
2 answers
14k 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)...
boctulus's user avatar
  • 161
1 vote
1 answer
328 views

Get username of a thread

How to gather the username/SID/account of a particular thread? No, I am not looking for account of the process, but of specific thread. I've looked-up Process Explorer, but it doesn't show security-...
Ajay's user avatar
  • 945
-4 votes
1 answer
114 views

Do Windows and Debian / Red Hat use the same thread management?

I need to know what kind of thread management Windows and Debian / Red Hat use in their recent versions. I know that they used to use 1 to 1 thread management model. Do they still use this model ...
Hossein's user avatar
  • 745
0 votes
0 answers
2k views

setting affinity for multiple cores on dual cpu system

We are using some systems with 2cpu's with 6 cores/12 threads each so 24 threads in total, for quite a lot of multitread simulations. Because the problem doesnt scale perfectly, i usualy run 4 ...
Sarmes's user avatar
  • 121
-1 votes
1 answer
118 views

Why are there 3 chrome.exe processes immediately upon launch?

I am aware that chrome.exe uses a new process per browser tab, but why do I get 3 chrome.exe processes in the process list immediately upon launch?
Stein Åsmul's user avatar
  • 1,119
22 votes
0 answers
3k views

Jenkins realtime console output for parallel threaded fabric command [closed]

We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab --hosts=prod1.server,prod2.server,prod3.server --parallel copy_cache This will copy cache to ...
mVChr's user avatar
  • 405
1 vote
3 answers
5k views

Can threads from the same process run at the same time, on a multicore systems?

I searched the web and the answers I found were tentative. That is, people thought this is what happens but were not sure. Assuming the proper precautions were taken to synchronize and prevent ...
shawnhcorey's user avatar
0 votes
1 answer
1k views

Efficient Multi-thread downloading? [closed]

My downloading speed of files is not fast enough.. Is there any way to add more thread in a single download? Thank you for answering this.
572's user avatar
  • 1
1 vote
0 answers
30 views

Show all running tasks in Assembly

Is it possible to show/log everything what the CPU does? The CPU knows what it executes, so it could print the running threads/tasks on the screen or in a file.
user avatar
4 votes
1 answer
4k views

how to make Apache 2.4 work in single worker mode by default?

I'm using Apache 2.4 on my server. My scripts are using a lot of system() commands and they require to work in one process mode. When I start apache using the command: apachetctl -X (which normally ...
Marek's user avatar
  • 169
1 vote
1 answer
85 views

Are there two seperated schedulers in major operating systems, one for processes and one for their threads? [closed]

Let's assume a process is given the CPU on a single-core CPU system by the scheduler and let's assume this process has 10 threads. Who decides which of the ten threads gets the CPU? In other words, ...
JohnnyFromBF's user avatar
  • 4,938
1 vote
1 answer
2k views

How many threads are concurrently executed?

The output from WMIC: C:\Users\fra>WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors DeviceID NumberOfCores NumberOfLogicalProcessors CPU0 4 8 C:\Users\fra> It ...
user3111525's user avatar
6 votes
3 answers
20k views

Command-line Number of thread per process on MacOS

I'd like to be able to get the number of thread per process in command-line and get the exact same number I can see via the Activity Monitor. At the moment the IntelliJ IDEA process (PID 5235) has ...
TheEwook's user avatar
  • 178
0 votes
1 answer
1k views

Cores and threads? How does it all work exactly?

I am confused by this ... if a CPU has 2 logical cores, it can run two programs 100% concurrent, yes? Otherwise, 2 programs on one CPU must be 100% time-divided (can't run independently as the same ...
user avatar
0 votes
0 answers
46 views

Is parallelism in computer science always directly tied to the number of processor cores?

Specific to the Java programming language, would it be accurate to say that two threads can be concurrent, but can only truly be run in parallel if there are two or more cores?
user avatar
0 votes
0 answers
491 views

How does Windows affinity work with hyperthreaded CPUs?

Let me describe our requirement in detail. We are doing some kind of assignment which requires capturing of IP data through NIC card and then processing the captured data in real time. The processing ...
Priyankar Ghosh's user avatar
2 votes
1 answer
3k views

Launch each Windows Explorer window in a separete process

Win7 Win64. I configured Windows Explorer in Tools > Folder Options > View > Launch folder windows in a separate process. It is checked, to make sure I rebooted Windows and it was still checked. ...
Hikari's user avatar
  • 307
25 votes
4 answers
96k views

what does 2 core 4 threads mean in cpu?

I wanted to know what does 2 cores 4 threads mean about a cpu? I am talking about this cpu which i have http://ark.intel.com/products/47341/Intel-Core-i5-520M-Processor-3M-Cache-2_40-GHz I initially ...
user734861's user avatar
2 votes
1 answer
106 views

Windows 8.1's audio service chokes on threads and handles?

-- snipped as the hibernation thing seems to be invalid now -- Edit: I found this... This process is using 52,552 handles and 6,065 threads when I took the screenshot. At the time of writing, 52,913 ...
Vercas's user avatar
  • 562
1 vote
0 answers
2k views

ProRes transcoding in ffmpeg too slow

We are trying to transcode movies / clips into ProRes LT by using following options: ffmpeg -threads "16" -i "$2" -flags +ildct -vcodec prores -profile 1 -qscale 4 \ -threads "16" -r 24 -vf "yadif=0:-...
sebastian's user avatar
  • 301
0 votes
3 answers
95 views

Multiple CPUs, multithreaded performance

My program: 100% CPU and RAM based, performs mathematical calculations, reads the data from the HDD into RAM in the beginning. No communication between threads. The threads, all take the same time ...
 ShadowHero's user avatar
7 votes
1 answer
6k views

Why are user level threads faster than kernel level threads?

I found out that user level threads are a lot faster than kernel level threads but I could not find any convincing example of WHY is user level threads are faster than kernel level threads ? Could ...
vikkyhacks's user avatar
2 votes
3 answers
229 views

Single threaded process being executed on 2 cores

On my quad core cpu, it seems like a single thread (endless while loop) is being executed on 2 cores simultaneously. Why is this? Shouldn't a single thread be executed on one core only?
agz's user avatar
  • 8,278
0 votes
1 answer
508 views

Use all processor cores, 1 core/per 1 thread in *nix

According to xz documentation the "-T 4" means I should be using 4 threads, each compressing a different part of the file simultaneously. Before using nice -19 I would only get %50 usage of 1 core, ...
GlassGhost's user avatar
  • 1,269
-2 votes
1 answer
83 views

i3 3210 do all 4 threads run at once

windows 7, task manager show%s thread 1,2,3 all running around 40% thread 4 is at 2%. Is this normal? i3 3210 windows 7 8GB DRAM cpu running at 35% per task manager
david n's user avatar