Re: CPU utilization in Snow Leopard
Re: CPU utilization in Snow Leopard
- Subject: Re: CPU utilization in Snow Leopard
- From: Shashanka L <email@hidden>
- Date: Tue, 20 Oct 2009 11:58:33 +0530
- "x-copyrighted-material: http://www.robosoftin.com"
Hello Joar Wingfors,
I am performing some operation by detaching the thread and waiting
for some process to complete. I am using runloop for waiting purpose.
NSDate instance taking lots of Memory when thread is alive (ie till
mShouldThreadAlive set to YES). This can be seen only in snow leopard.
Below is the code snippet...
//New thread selector
-(void)newThread
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
//Some operations...
do //Keeps thread alive till date
{
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:
[NSDate dateWithTimeIntervalSinceNow: 0.1]];
} while (mShouldThreadAlive); //Waiting for other process to complete
[pool release];
}
Autoreleased object from [NSDate dateWithTimeIntervalSinceNow: 0.1] is
not getting released and taking lots of memory.
Does any one came across this issue in snow leopard??
Or any solution....?
Please Help..
On 26-Sep-09, at 1:40 PM, Joar Wingfors wrote:
On 25 sep 2009, at 23.14, Shashanka L wrote:
I am working with Snow Leopard 10.6.1. And I have observed the
difference in CPU usage (high compared to Leopard) for my
application. I am using mainly the Quicktime, sqlite3 calls.
Also found some memory leaks in Foundation class methods.
Have anybody observed the above said issues with 10.6?
Hello Shashanka,
You're not really providing enough information for anyone to know if
they've seen the same issues or not.
If you've found something that you think are bugs in Mac OS X,
please file bug reports:
<http://developer.apple.com/bugReporter/>
Many thanks,
j o a r
Thanks,
Shashank Lagvankar
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden