I have a similar problem as Criteria for selecting timeout value?. But my question is slight different.
Process A dependes on process B and has a timeout value of 5 seconds, sometimes process B might take longer to respond(e.g. slow machines), in this case process A will think process B is gone and will terminate.
We have a performance requirement, so the goal is to always respond on the least feasible time. This application runs on tablets, notebooks, desktops and even servers. In a scenario were the host machine performance can vary widely, how can we adjust the timeout taking into account machine performance?