Foundation Thread exhaustion on Linux


(Joe Bell) #1

Howdy,

I've opened https://bugs.swift.org/browse/SR-1908 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
https://github.com/apple/swift-corelibs-foundation, 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
http://dev.iachieved.it/iachievedit/
@iachievedit