Beispiel #1
0
        public static Thread ReadInProcess(FileQuery query)
        {
            var task = new Thread(ReadTextInProcess);

            task.Start(query);
            return(task);
        }
Beispiel #2
0
        public static Thread ReadParallel(FileQuery query)
        {
            var task = new Thread(ReadText);

            task.Start(query);
            return(task);
        }
Beispiel #3
0
        public static Thread ReadSynchronized(FileQuery query)
        {
            SemaphoreService.Wait(instance.semaphore);
            var task = new Thread(ReadText);

            task.Start(query);
            return(task);
        }
Beispiel #4
0
        public static Thread Read(FileQuery query)
        {
            ReadText(query);
            var completed = new Thread(() => { });

            completed.Start();
            return(completed);
        }