Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:36:05+00:00 2026-05-31T09:36:05+00:00

I am writing a simple python code for a very task which some of

  • 0

I am writing a simple python code for a very task which some of the best minds i guess are working on? Anyways.
I have a really powerful desktop 8cores (16 virtual cores).
I want to write a program whcih can find the distinct words in the whole corpus of words.
Or think of other task like things like word frequency counts.
Though map-reduce stuff works great for distributed framework.
Is there a way to make use of all the cores of your processor? that is multicore execution of code.

Or maybe this.
if i have to do the following:

def hello_word():
   print "hello world!"

and instead of python hello_world.py
i want to run this hello_world.py using all the cores of my processor.
what changes will i make.?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:36:06+00:00Added an answer on May 31, 2026 at 9:36 am

    You first need to identify how your process can be broken down into parallel pieces. Running your example in your question on multiple cores makes absolutely no sense because there is just a single task to accomplish and no way it can be broken down into simpler, parallel steps.

    After you have figured out how to break your task into parallel pieces, take a look at the multiprocessing module as Michael mentioned in comments. Working through some of the examples on that page is a good way to start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Writing a test app to emulate PIO lines, I have a very simple Python/Tk
I'm writing a very simple web service, written in Python and run as CGI
I have the following simple methods for writing a python object to a file
I'm looking into writing simple graphics code in Android and I've noticed some synchronized()
I am working on writing a simple python application for linux (maemo). However I
I'm writing a script to convert very simple function documentation to XML in python.
Im writing a program which uses simple neural network perception algorithm, I have problem
I am writing a simple Python web application that consists of several pages of
I am writing a simple Python script with no GUI. I want to be
I'm writing a simple alarm utility in Python. #!/usr/bin/python import time import subprocess import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.