0

It is always being asked in interview how many maximum threads we can run in ios iphone programming simultaneously in NSOperationQueue and through GCD async?

Please explain the answer.

Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
Ajay_Kumar
  • 1,381
  • 10
  • 34
  • 62

1 Answers1

0

You should be using NSOperationQueueDefaultMaxConcurrentOperationCount when you create your operations to let the OS decide the maximum number of operations - it will decide this based on the hardware available and system resources. The number will of course vary depending on device.

davbryn
  • 7,156
  • 2
  • 24
  • 47