Showing posts with label Multithreading. Show all posts
Showing posts with label Multithreading. Show all posts

Sunday, January 6, 2013

Compute Unified Device Architecture (CUDA)


At the start of multi core CPU's and GPUs the processor chips have become parallel systems. But speed of the program will be increased, if software exploits parallelism provided by the underlying multiprocessor architecture. Hence there is a big need to design and develop the software so that it uses multithreading, each thread running concurrently on a processor, potentially increasing the speed of the program dramatically. To develop such a scalable parallel applications, a parallel programming model is required that supports parallel multicore programming environment.

CUDA stands for Compute Unified Device Architecture. It is a parallel programming paradigm released in 2007 by NVIDIA. It is used to develop software for graphics processors and is used to develop a variety of general purpose applications for GPUs that are highly parallel in nature and run on hundreds of GPU’s processor cores.

CUDA has some specific functions, called kernels. A kernel can be a function or a full program invoked by the CPU. It is executed “n” number of times in parallel on GPU by using “n” number of threads. CUDA also provides shared memory and also does synchronization among threads.

The CUDA parallel computing platform provides a few simple C and C++ extensions that enable expressing fine-grained and coarse-grained data and task parallelism. The programmer can choose to express the parallelism in high-level languages such as C, C++, and FORTRAN.

Friday, December 7, 2012

Automatic Voice Command Execution


Hello Readers, this is a new concept that I am going to explain you in this post. Before starting main topic I will like to clear basic concepts, because if you don’t know the basic concept then you will not understand this concept properly. And according to my knowledge still this concept is not developed, and this is only concept that I thought and if you want, you can develop it.
Now back to the basic concepts, you should know voice frequency, how to convert voice frequency into text, and programming on any Linux Operating System, and the most import Multithreading, Because if you don’t know multithreading then you can’t develop it.
As we know voice is nothing but the frequency and we can easily convert analog frequency (sin wave) into digital frequency (square wave) by using some methods and once it converted into digital frequency, we can easily convert it into text.
Fig : Automatic Voice Command Execution
Step 1 is completed, now in next step we have to check a file where all the commands are stored but it is a hard task to recognize actual command because the voice frequency which was converted into text that may be converted into wrong formats or may be spelling of commands converted in wrong way. But this problem will solve by proper converting, for this we have to check (debug) all possible conditions.
Now in 3rd and final step we have to read all commands one by one and simply execute them on terminal of Linux Operating System that you are using for operations. The last step is seen to very easy but it not, because we have to execute all commands one by one that is easy but when to execute or when to wait (if file is empty) that is so much difficult but there is a solution that is multithreading. For more information of multithreading you can refer to any book or you can search it on http://www.google.com. To execute all commands we require two or more threads, its totally depends on Programmers logic.
I am hoping that all readers will like this concept and if anyone wants any kind of help to develop this concept then you can mail me on panditdilipr@gmail.com.