Posts

Showing posts from December, 2015

Getting the best display on a monitor

As a note, I found out recently that if your video card does not have HDMI, do not use a DVI-D to HDMI cable if the monitor has HDMI - test will not be clear. Use DVI-D cable only. DVI-D cannot be converted to HDMI on a cable without an expensive $80 active cable. If you connect a mac mini to a monitor using a HDMI to DVI adapter, text will be blurry - use direct HDMI - it gets better. I have ordered a thunderbolt to HDMI cable and I think that will be better as it is a dual link digital signal from the display port.

AutoResetEvent and ManualResetEvent in C#

The section on this topic within the below MSDN article is excellent: https://msdn.microsoft.com/en-us/library/ms173179.aspx " Using a lock or monitor is useful for preventing the simultaneous execution of thread-sensitive blocks of code, but these constructs do not allow one thread to communicate an event to another .  This requires   synchronization events , which are objects that have one of two states, signaled and un-signaled , that can be used to activate and suspend threads .  Threads can be suspended by being made to wait on a synchronization event that is unsignaled , and can be activated by changing the event state to signaled .  If a thread attempts to wait on an event that is already signaled, then the thread continues to execute without delay. There are two kinds of synchronization events:  AutoResetEvent , and  ManualResetEvent . They differ only in that  AutoResetEvent  changes from signaled to unsignaled automatically any time it activates a thread. C