I wonder if the built in map function splits a list in x-chunks to apply the give function in parallel (Threads)?
The docu doesnt say anything about it but I would wonder why it is not implemented like this.
def map_func(x):
'''
:param x:
:return: 2x
>>> map_func(4)
4
'''
return x * x
new_list = list(map(map_func, range(1, 2 ** 25)))
print(new_list)
From the task manager i cannot clearly see if its done by one thread or more.
Can someone explain please if its sequential and if so, why?