|
-
February 9th, 2009, 01:22 PM
#5
Re: help on efficient image loading
if i were you i do it like this using multi-threading.
1- Thread1: reading image and resizing them then adding them into the queue
2- Thread2: deguing images from the queue and adding them to the hashmap
3- Thread Safty: i implement Mutex objet for locking on queue or Semaphore if i needed somehow more than one thread enter the critical section of my code.
Please rate my post if it was helpful for you.  Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|