Questions tagged [threads]

A thread is the smallest entity of execution within a program.

Within a process, there may be one or more threads, each with the following:

  • A thread execution state (Running, Ready, etc.)
  • A saved thread context when not running; one way to view a thread is as an independent program counter operating within a process
  • An execution stack
  • Some per-thread static storage for local variables
  • Access to the memory and resources of its process, shared with all other threads in that process

Source: William Stallings, Operating Systems: INTERNALS AND DESIGN PRINCIPLES

99 questions
5
votes
2 answers

Can I have multiple threads running in parallel in a pod with a CPU limit set to 500 millicores?

I have a multi cores Kubernetes cluster, inside it I have multiple pods configured with a CPU limit of 500 millicores: resources: limits: cpu: "500m" It is possible to have, in a single pod, more than one threads…
Davide Icardi
  • 177
  • 1
  • 2
  • 10
4
votes
3 answers

Why having more and faster cores makes my multithreaded software slower?

I am experiencing bizarre behavior on scaling a multiprocess/multithreaded C++ application. The application contains 10 separate processes, communicating through Unix Domain Sockets and each one having ~100 threads doing IO and several processes on…
sorush-r
  • 151
  • 1
  • 5
4
votes
1 answer

Tomcat threads are increasing but never decreasing

We are using new relic to monitor tomcat threads. The graph shows increase of thread count,but it never decreased even the application is idle. We noticed that when it increase CPU also increased and CPU got reduced when application is idle. But…
Selvakumar P
  • 305
  • 2
  • 8
  • 16
4
votes
1 answer

Tell Tomcat to drop requests instead of dying "All threads (150) are currently busy"

My Tomcat 6.0.26 sometimes dies saying: SEVERE: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status ... then Tomcat shuts down, and users can't access the webapp until I restart Tomcat…
Nicolas Raoul
  • 1,334
  • 7
  • 22
  • 43
3
votes
2 answers

Stand alone single thread optimized server vs vm running on VMWare

I apologize for the length of my post. We recently converted our business system to a product that is licensed by the number of Cores. We purchased the 2 core license and are currently running it on VMWare. It is quite expensive to move to the next…
3
votes
1 answer

Linux kernel thread dependency graph?

I'm trying to benchmark a system with a software RAID-10 volume, backed by Fusion IO cards. Is it possible to display a Linux kernel thread dependency graph? I would like to know how all the [xfs], [md], [md0_raid10], and [fct-smp] threads…
skohrs
  • 1,520
  • 11
  • 23
3
votes
2 answers

My linux server "Number of processes created" and "Context switches" are growing incredibly fast

I have a strange behaviour in my server :-/. Is a OpenVZ VPS (I think is OpenVZ, because /proc/user_beancounters exists and df -h returns /dev/simfs drive. Also ifconfig returns venet0). When I do cat /proc/stat, I can see how each second about…
3
votes
2 answers

How do I increase the queue length in IIS's default app pool via command line?

I have a farm of IIS servers running Exchange and we are getting this error in HTTP Error: HTTP/1.1 POST /ews/exchange.asmx - 1 Connection_Dropped_List_Full MSExchangeServicesAppPool The advice from MSFT is to increase the app pool queue length…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
3
votes
2 answers

Hang while starting several daemons

I’m running a Debian Squeeze AMD64 server. Target runlevel after boot is runlevel 2, which includes rsyslogd, cron, sshd and some other stuff, but not dovecot, postfix, apache2, etc. The system fails to reach runlevel 2 with several symptoms: The…
Adrian Heine
  • 328
  • 4
  • 22
3
votes
2 answers

Redhat 5.5: Multi-thread process only uses 1 CPU of the available 8

Weird situation: Redhat Enterprise 5.5 (stock install, no updates, x64) on a HP z800 workstation. (Dual Xeon 2,2 Ghz. 8 cores, 16 if you count Hyper-threading. RH sees 16 cores.) We have an application that can utilize 1, 2 or 4 threads for heavy…
Tonny
  • 6,332
  • 1
  • 18
  • 31
3
votes
2 answers

Does anyone know where I can find "proof" that SQL's Fiber mode is barely faster than regular thread mode on Win 2008 R2

I remember seeing a PDC presentation on the Windows Kernel regarding Threads vs Fibers and in it Mark R. mentioned that this caused SQL's Thread mode to run almost as fast as Fiber mode, but with added stability. Does anyone have a link to this? Or…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
3
votes
4 answers

Can Windows be configured to only use a single hardware thread?

Is is possible to configure Windows to only use a single hardware-thread. Every machine for the last couple of years seems to be at least dual-core, but some timing bugs are only reproducible when threads execute serially. I am particularly…
2
votes
1 answer

Give pthread_setschedparam() permissions to non-root user (linux)

How can I give a non-root user permission to execute pthread_setschedparam() to set thread priorities? Thank you
Nash
  • 121
  • 1
  • 3
2
votes
0 answers

DNS doesn't resolve some domains on huge amount of requests

I need to check 200kk (200,000,000) domains for availability and CMS information. I'm using php 7.1 and simulating multi-thread check. Hardware and config The server hardware: Multicore CPU, 64GB RAM, SSD disks, 500 Mbits dedicated bandwidth (OVH…
2
votes
2 answers

MariaDB threads optimalization

NEW (pcie) server: Intel(R) Xeon(R) CPU E5-2637 v4 @ 3.50GHz, 1TB NVMe disks, 128 GB RAM, installed Debian 4.9.65-3+deb9u1, Ver 15.1 Distrib 10.1.26-MariaDB moved binary db files from OLD server: Intel(R) Xeon(R) CPU E5-1630 v3 @ 3.70GHz, SSD…
2ge
  • 173
  • 7