import multiprocessing
import time


def my_func():
    name = multiprocessing.current_process().name
    print("Starting process name = %s \n" % name)
    time.sleep(3)
    print("Exiting process name = %s \n" % name)


if __name__ == '__main__':
    process_with_name = multiprocessing.Process(name='myFunc process', target=my_func)

    # process_with_name.daemon = True

    process_with_default_name = multiprocessing.Process(target=my_func)

    process_with_name.start()
    process_with_default_name.start()

    process_with_name.join()
    process_with_default_name.join()

import multiprocessing
import time


def my_func():
    name = multiprocessing.current_process().name
    print("Starting process name = %s \n" % name)
    time.sleep(3)
    print("Exiting process name = %s \n" % name)


if __name__ == '__main__':
    process_with_name = multiprocessing.Process(name='myFunc process', target=my_func)

    # process_with_name.daemon = True

    process_with_default_name = multiprocessing.Process(target=my_func)

    process_with_name.start()
    process_with_default_name.start()

    process_with_name.join()
    process_with_default_name.join()

# process_with_name.daemon = True