A computer system for a vehicle comprising: a sensor system and a processor; wherein the sensor system is configured to acquire analog signals from the environment at a sampling rate thereby providing a digital data stream consisting of data tokens to the processor, wherein each token corresponds to an acquired signal of the analog signals; wherein the processor is configured to execute an algorithm for continuously acquiring the digital data stream consisting of data tokens, wherein the algorithm has an acquisition rate for acquiring the data tokens of the data stream; wherein the processor is configured to provide instructions to the sensor system to adapt the sampling rate to the acquisition rate of the algorithm; wherein the algorithm has three different states, the first status indicating that the algorithm is ready to process one or more data tokens corresponding to analog signals, the second status indicating that the algorithm is not ready to process one or more data tokens corresponding to analog signals and the third status indicating that the algorithm is close to being ready for processing one or more data tokens corresponding to analog signals to account for acquisition latencies of the sensor system; wherein the sensor system is configured to provide information on the expected acquisition latencies to the processor; wherein the computer system running the algorithm executed on the processor is configured to provide information on the time until the algorithm will be in the first status to the processor; wherein the computer system running the algorithm executed on the processor is configured to read the states and to trigger the acquisition of the signal at the sensor system upon determining that the algorithm is in the third status, such that the algorithm receives the data token when the algorithm enters the first status, by using the information on the expected acquisition latencies and the information on the time until the algorithm will be in the first status. a sensor system and a processor; wherein the sensor system is configured to acquire analog signals from the environment at a sampling rate thereby providing a digital data stream consisting of data tokens to the processor, wherein each token corresponds to an acquired signal of the analog signals; wherein the processor is configured to execute an algorithm for continuously acquiring the digital data stream consisting of data tokens, wherein the algorithm has an acquisition rate for acquiring the data tokens of the data stream; wherein the processor is configured to provide instructions to the sensor system to adapt the sampling rate to the acquisition rate of the algorithm; wherein the algorithm has three different states, the first status indicating that the algorithm is ready to process one or more data tokens corresponding to analog signals, the second status indicating that the algorithm is not ready to process one or more data tokens corresponding to analog signals and the third status indicating that the algorithm is close to being ready for processing one or more data tokens corresponding to analog signals to account for acquisition latencies of the sensor system; wherein the sensor system is configured to provide information on the expected acquisition latencies to the processor; wherein the computer system running the algorithm executed on the processor is configured to provide information on the time until the algorithm will be in the first status to the processor; wherein the computer system running the algorithm executed on the processor is configured to read the states and to trigger the acquisition of the signal at the sensor system upon determining that the algorithm is in the third status, such that the algorithm receives the data token when the algorithm enters the first status, by using the information on the expected acquisition latencies and the information on the time until the algorithm will be in the first status.