Showing posts from December, 2014

How to create your own Thread Library or Package ?

Hello friends.. 🙂 This special post is for those who want to create thread library/package of their own and don’t know from where to start. So lets begin, and see from where you should start. Threads  often provided in the form of  thread package . Such package contains operations to create and destroy threads as well as operations on synchronization variables such as  mutex  and  condition   variables . There are basically two approaches to implement thread package/library. To create a thread library that is executed entirely in user mode. To create a thread library that is executed in user mode as well as in kernel mode/ using  LWP   (Let the kernel aware of threads and schedule them) Advantages   of   building  user-level thread library : First, it is cheap to create and destroy threads. Because all thread administration is kept in the user’s address space, the price of creating a thread is primarily determined by the cost for allocating memory to set up a thread stack. Analogousl

For storing billions of images, Filesystem or Database ?

If you are thinking about to store million of images and unable to decide which side to go, either store them into database systems such as MySql or on the file system ? Then probably this post will help you. The answer to this question is depend upon the size of images  you   want     to store. If the average size of the images you want to store is less than 10 kb (usually thumbnails only), then its good to go with   database   systems only, most of the database systems with latest updates are useful for this purpose, but if the average size of images is more than that,   then  I  will personally recommend you to use file system for storing images and using database systems for storing paths of those images.Why not to use Database system  for storage and Why to use for storing paths ? Because most of the database systems such as MySql takes more time to process and deliver such data, and you also need to write lots of code for storing and retrieving images to and from the database, wh

NVIDIA Shield a powerful gaming device

           If you want a powerful handheld gaming device (like the PS VITA or Nintendo DS), check out the NVIDIA Shield. It’s like an Xbox Controller with a 5inch, 720 pixels touch screen display fused to it, and it runs on a 1.9GHz Tegra 4 SoC – one of the fastest in market this year and it supports streaming games for your PC. Android games runs spectacularly, even if it lacks a comprehensive game library for now, and shield touted positively for its battery life.   [AMAZONPRODUCTS asin=”B00E3667XQ”]