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
1
vote
0 answers

Apache 2.4 mpm_winnt: one thread takes all resources

I am working with Apache 2.4.33x64 on Server 2008 to run a site for max. 15 users. On the site you can do some really expensive calculations which can take some minutes (an external script is called). During these calculations the server is on 15%…
1
vote
0 answers

Any difference between "siblings" in /proc/cpuinfo and "threads" in intel official documentations?

/proc/cpuinfo provides such info: ... vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz stepping : 2 microcode : 59 cpu MHz : 2397.161 cache size : 20480 KB physical id :…
Lukas Liesis
  • 123
  • 7
1
vote
2 answers

Linux: scheduling processes and threads

When there are multiple single-threaded processes and some multi-threaded processes, all CPU-intensive, how time is divided between them (assuming that all have the same priority)? For example, on 48-core machine, I have 48 single-threaded processes…
1
vote
2 answers

JRun threadpool configuration

Me and my team have been struggling to keep a clustered ColdFusion application stable for the better part of the last 6 months with little result. We are turning to SF in the hope of some finding some JRun experts or fresh ideas cause we can't seem…
jfrobishow
  • 71
  • 10
1
vote
1 answer

Windows Server 2012 R2 kernel threads increase until the system hang

I have a small problem with my Windows Server 2012 R2. At the moment the problem is that the threads from "NT Kernel & System" increase every second until they reach 16k, and then the server becomes very slow or hangs. When I try to debug the…
1
vote
1 answer

Application caps at 20% utilization per core no matter how many threads are launched

I'm trying to use a Dell Poweredge R900 I got secondhand as a compute pool (4x quadcores gives me 16 cores to run simulations with). It's running windows server 2008 R2 enterprise at the moment. I'm running custom .net code, and can specify the…
1
vote
0 answers

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few seconds. Additionally CRON isn't able to do…
DOB
  • 11
  • 1
1
vote
5 answers

How many simultaneous requests would you expect a webserver to handle

I know there is no straight answer to this question - depends on specs etc. But what is the order of magnitude of simultaneous requests you'd expect a server to handle? Currently, our server starts to really slow down after more than 10 threads…
olamundo
  • 129
  • 1
  • 2
  • 7
1
vote
0 answers

Taking a thread dump on IBM J9 takes a long time

I'm trying to collect a java core on AIX (java version 1.6). There is only one dump agent configured, which collects a system dump, heap dump and java core on every SIGQUIT, so I used HealthCenter to request only a javacore. That worked fine, it…
Mike
  • 212
  • 3
  • 13
1
vote
1 answer

intel 2620 and 2609 on debian cpuinfo

I have two Boxes running Debian 7 with the following processors. Each Box has two of the same processors. Intel® Xeon® Processor E5-2620 (15M Cache, 2.00 GHz, 7.20 GT/s Intel® QPI) # of Cores 6 # of Threads 12 Intel® Xeon® Processor E5-2609 v2 …
sqwale
  • 141
  • 1
  • 8
1
vote
0 answers

Linux watchdog and timing interval

How does the /dev/watchdog timer exactly work? I found a description here and it says that once I open the file from an application I need to update it every 10 seconds. I was wondering is this a hard limit? For example what if I update it in 11…
Jim
  • 335
  • 2
  • 4
  • 8
1
vote
1 answer

MariaDB / MySQL using a lot of threads / memory

I've been setting up a new VPS and wanted to try out MariaDB. I'm using MariaDB 10.0.1, which as far as I understand it is the equivalent of MySQL 5.6. Has the thread handling of threads changed dramatically since MariaDB/MySQL 5.5? This is what I…
Brendan
  • 145
  • 2
  • 10
1
vote
0 answers

Apache serving Samba share leads to poor performance?

This is a question about a problematic interaction between Apache and Samba. Our Linux server (on a private intranet) mounts a Windows share, which is physically thousands of miles away, and serves it via Apache. This lets our users view files on…
DanB
  • 111
  • 2
1
vote
1 answer

Mysql thread eating up the whole cpu

I have a problem with MySQL server. Some mysql thread for a few hours eating up the whole processor. Killing the process certainly helps, but how is it possible to track that the code is running inside? My current top: PID USER PRI NI VIRT …
vlad
  • 129
  • 1
  • 6
1
vote
0 answers

Are memory and thread managers on Windows Server 2008 R2 and Windows 7 Home/Prof/Ultimate same?

I was asking one question on DBA site, and I got a reply, that implies, that Windows Server 2008 R2 and Windows 7 Home/Prof/Ultimate have different memory and thread managers. Is this correct?
Vladislav Rastrusny
  • 2,671
  • 12
  • 42
  • 56