Tag Archives: set

An important set of facts about the CFA on levels I – III

I just stumbled upon here while searching for something totally different, but I’ll throw in my two cents on this topic (trust me, i’m an expert):

CFA is most useful for analysts (e.g., buy side and sell side analysts).  As for traders – it depends on the type of trader. It wouldn’t be as useful for a trader of a purely quantitative strategy (HFT/stat arb / quant equity); yet it may be useful for a relative value arb trader hoping to manage his own fund. The CFA designation is important mostly to outsiders (investors, clients, etc.), although it does help the general promotion potential of anyone in the industry without a graduate degree.  Whether you seek the designation or not, however, I would strongly suggest learning most of the material anyway – at least to the equivalent of level 1 (or level 2 if you trade derivatives or fixed income). If you don’t, you’ll be at a disadvantage (as a trader or a quant).  Just for reference, the depth of material in level 1 is roughly equivalent to what is covered in an undergrad Finance program or an MBA with a Finance concentration; level 2 coverage is comparable to a MSF (MS in Finance); and level 3 is a broad coverage of portfolio management.
I think there may be old exams floating around somewhere – take one and see how you do.

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Simplest C++ Multithreading with Thread classes, mutex, set, wait, lock, unlock defined

Simplest C++ Multithreading with Thread classes, mutex, set, wait, lock, unlock defined

I have searched high and low for the best and simplest multi threading explained within C++. As you know, I have already posted some articles on Linux processes and how deadlocks work. Theoretically, we are trying to prevent the Dead Diamond of Death syndrome. Both Java and C++ have potential solutions but Java has all these features built in natively. C++ needs a new set of classes defined which includes a specialized Thread class.
Using a set of mutex method, we can lock certain processes from subsequent messing up the state of a current thread. An example of mutex locking a storage block of code, look at:
int g_iStorage = 0;
CMutexClass MyMutex;

void StoreValue( int *pInt )
{
MyMutex.Lock(); //the gate keeper. only one thread
//allowed in at a time

g_iStorage = *pInt; //protected data, critical code section

MyMutex.Unlock(); //unblocks, allowing another thread to
//access g_iStorage

}

There are some other methods which work the same way Java’s Threading class and methods. These methods are explained below:
void Set() Sets an event state to signaled, notifying the blocked thread.
BOOL Wait() Places the calling thread in a blocked state until the event state is set to signaled. Returns TRUE on success, FALSE on failure.
void Reset() Resets a signaled event to unsignaled.
event object being used by a receiving thread::
CEventClass event;
.
.
//thread code

.
.
while(bContinueRunning)
{

event.Wait(); // wait for an event to occur

// perform some task

.
.
event.Reset(); // reset the event to un-signaled

}
.
.
Example of an event object used by one thread signaling another:
EventClass event;
.
.
// change some data

.
.
event.Set(); // notify thread that an event has occured,

// set event to signaled

There is more detailed info you could go into. I do believe if you know enough of above, you should be able to show some rudimentary knowledge in multithreading within C++. I would recommend following through with the link below as it is fairly close representation of how Java works.
To download and better understand how all this Thread classes work, go to http://www.codeproject.com/KB/threads/threadobject.aspx
It also contains a very good end to end set of source files to generate your own Thread classes which include the mutexes explained.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!