How to share data between all process in Python multiprocessing?
问题 I want to search for pre-defined list of keywords in a given article and increment the score by 1 if keyword is found in article. I want to use multiprocessing since pre-defined list of keyword is very large - 10k keywords and number of article is 100k. I came across this question but it does not address my question. I tried this implementation but getting None as result. keywords = ["threading", "package", "parallelize"] def search_worker(keyword): score = 0 article = """ The multiprocessing