static void ThreadProc(object stateInfo)
    {
        WorkUnit unit = stateInfo as WorkUnit;

        unit.DoWork();
    }