Opened 9 years ago

Closed 12 months ago

Last modified 3 months ago

#7248 closed bug (fixed)

error in thread use accounting?

Reported by: jonas.kirilla Owned by: nobody
Priority: normal Milestone: R1/beta2
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


The attached utility (thread_maker) spawns a number of threads, given as argv[1]. (defaults to 16)

Having run a couple of "thread_maker 2000" (or more) and having it fail at spawning threads, sysinfo can show something like this:

~/Desktop/thread_maker> sysinfo | grep threads

-25837 threads free (used/max 29933 / 4096)

Haiku hrev39648 gcc2hybrid.

Attachments (1) (3.4 KB ) - added by jonas.kirilla 9 years ago.

Download all attachments as: .zip

Change History (5)

by jonas.kirilla, 9 years ago

Attachment: added

comment:1 by bonefish, 9 years ago

The thread limit is not enforced ATM. The reason why creating more threads fails at some point is probably due to some other resource limit (address space, semaphores,...).

comment:2 by axeld, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:3 by waddlesplash, 12 months ago

Resolution: fixed
Status: assignedclosed

Thread limits are now enforced, so this should be fixed.

comment:4 by nielx, 3 months ago

Milestone: R1R1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.