threadparallelparadigm: fixed data race