Concurrency
Concurrency¶
Given a semi prime, your program outs its prime factors within 6 days
- Precondition - given a semi prime
- Post condition - outs its prime factors
- Non functional requirement - within 6 days
Testing¶
- Correctness Testing
- Performance Testing
Ideally, with K extra cores we can do K times faster
Multithreading programs must be efficient and not have:
- race conditions
- visibility issue
- execution ordering problem
- deadlock