Foundation Thread exhaustion on Linux

Howdy,

I've opened [SR-1908] Foundation Thread exhaustion · Issue #4560 · apple/swift-corelibs-foundation · GitHub against Thread (NSThread)
in Foundation. I noticed several weeks ago while working with it on a
Raspberry Pi 3 that Thread.start() eventually doesn't actually start a
thread. This was found a lot faster on the Pi 3 than on a largish x86
server.

Anyone familiar with the Thread.swift implementation in
GitHub - apple/swift-corelibs-foundation: The Foundation Project, providing core utilities, internationalization, and OS independence, I'd love your
assessment of whether my code (in SR-1908) is correct or whether I'm
missing a crucial call to free up resources. I thought Thread.exit() would
do this for me.

Joe

···

--
Joseph Bell

@iachievedit