Concurrency and parallelism in MC and MD simulations in physics