I am very new to thread. However I would like to make 2 threads, Thread A and Thread B. When a button is clicked Thread A starts and so does Thread B. Thread B shows a loading image and disables users from clicking any buttons whilst Thread A executes some logic code. Thread B continues to run untill the logic in thread A is executed and thus Thready A is stopped.
Is it better to use a single or two thread in this case? How can I do this?