General Tech Learning’s
Difference between a Thread and Process
Answer
A process is an OS-level task or service. A thread runs “inside” a process and may be virtual or simulated. Generally speaking, threads share resources like memory, where processes each have their own separate memory area, and need to take more elaborate steps to share resources.
Another name for thread is “lightweight process” to distinguish it from the “heavyweight” system processes.
A Process has its own memory space, run-time environment and process ID.
A Thread run inside a Process and shares its resources with other threads.
What is a Windows Service and how does its life-cycle differ from a standard EXE?
A service opens before you even get to the login screen, whereas a standard exe cannot open until after you have logged on.
Windows Service applications are long-running applications that are ideal for use in server environments. The applications do not have a user interface or produce any visual output. Any user messages are typically written to the Windows Event Log. Services can be automatically started when the computer is booted. They do not require a logged in user in order to execute and can run under the context of any user including the system. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed.
Batch Files
1) Make sure you name the batch files with less than 8 char. If not you might face problems in older versions of DOS etc.
2) Make sure you have saved the text as a ASCII text.
3) Make sure you do not name the batch file with the same name as of any other file in the directory. This is because any program executable with the same name as the batch file will initiate first, instead of your batch if it is found first in the Dir search.
4) In DOS “@echo off” is to switch off the successful echo’s and “@” is to switch off everything.