HI guys,
==>in my application i have used three different thread code for one of them is here all thread are of same kind
==>i have defined two thread in appdelegate class
==>one in the root view controller
==>all the thread having different sleep time
My question is that does any thread may get killed by the other and the invocation time for one thread get affected by the other?
-(void)PostData
{
NSAutoreleasePool *apool = [[NSAutoreleasePool alloc] init];// we are responsible for the memory pool
while(TRUE)
{
[self performSelectorOnMainThread:@selector(PostAllthedata)
withObject:nil
waitUntilDone:YES];
[NSThread sleepForTimeInterval:150];
}
[apool release];
}
-(void)PostAllthedata
{
PostSyncData *objPostSyncData=[[PostSyncData alloc]init];
[objPostSyncData release];
}