If a process is doing some job on the server, then there is no time limit - it will continue to run as long as it needs. However, if the process communicates with the user and waits for the user's response, it will be suspended and will time out if the response is not received within a certain time (30 min, I think).
You can cancel a process through the Active Processes functionality but not all processes can be cancelled.