You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with the OperationQueue in the swift-5.1.2-RELEASE version. The whole OperationQueue seems to work synchronously with one single thread instead of using all available cores.
Hello, world!
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
OP COUNT: 1
done pushing operations
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
added <Thread: 0x00007f8e14000c80> on None
I would assume that different threads should be incorporated (maxConcurrentOperationCount is set to 4).
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Swift Runtime
Swift version 5.1 (swift-5.1.2-RELEASE)
Target: x86_64-unknown-linux-gnu
OS
Additional Detail from JIRA
md5: 7ac99bf05c7d6c768f6910f21d555ebb
Issue Description:
I have a problem with the OperationQueue in the swift-5.1.2-RELEASE version. The whole OperationQueue seems to work synchronously with one single thread instead of using all available cores.
This worked with swift 5.0. Following example
yields this output
I would assume that different threads should be incorporated (maxConcurrentOperationCount is set to 4).
The text was updated successfully, but these errors were encountered: