0
我有兩個集我的兩個線程的值,例如,在我的第一線,我有奇數和2號線,我有偶數,但我想打印如1,2-值, 3,4 .....如何打印線程值的替代?打印2線程值或者
NSThread* myThread = [[NSThread alloc] initWithTarget:self selector:@selector(myThreadMainMethod:) object:nil];
[myThread setThreadPriority:1];
NSThread* myThread2 = [[NSThread alloc] initWithTarget:self selector:@selector(myThreadMainMethod2:) object:nil];
[myThread2 setThreadPriority:1];
[myThread start]; // Actually create the thread
[myThread2 start]; // Actually create the thread
謝謝。
謝謝託尼......真的很感謝你的回覆....會經歷你所建議的...... –