create threads to generate exceptions
the code test in main