TERMINAL RELIABILITY OPTIMIZATION IN DISTRIBUTED PROCESSING SYSTEMS.