Daily Ed

You Learn Something New Every Day

Daily Ed

Main menu

Skip to primary content
Skip to secondary content
  • Home

Category Archives: Multiprocessing

Introduction to OpenCL

Posted on March 10, 2012 by admin
Reply

Over the past couple of days I’ve worked my way through AMD’s Introduction to OpenCL text and acquainted myself with concepts such as compute devices, compute units, and processing elements. I’ve also gone through the memory model, as well as the OpenCL C language. I also installed the AMD APP SDK but still need to run the “hello world” program.

Posted in Multiprocessing, Programming | Leave a reply

Double-Checked Locking

Posted on February 24, 2012 by admin
Reply

I read this paper on double-checked locking. It had a great discussion of the pitfalls of using this approach for implementing the Singleton Pattern. Here is a typical example of an unsafe implementation:

public static Singleton getInstance()
{
 if (instance == null) {
  synchronized(Singleton.class) {
   if (instance == null)
    instance = new Singleton();
  }
 }
 return instance;
}
Posted in Multiprocessing | Leave a reply

Archives

  • September 2012
  • May 2012
  • March 2012
  • February 2012

Meta

  • Log in
Proudly powered by WordPress