5 Replies - 481 Views - Last Post: 09 January 2012 - 10:12 PM Rate Topic: -----

Topic Sponsor:

#1 hiddenghost  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 36
  • View blog
  • Posts: 599
  • Joined: 15-December 09

How to best use multithreading?

Posted 03 December 2011 - 06:11 AM

I have some questions. Here's'2.

What's the best multi-threading server for python in your opinion?

How can I resolve multi-user same document editing?(like wikis)

Like a live ajax wiki, or some such shared document.

I'll continue researching, I just wanted to see if any one here could help some.

If you don't think you can help or don't want to feed me, could you leave some links that will help me learn this stuff?

Thanks. :)

Is This A Good Question/Topic? 0
  • +

Replies To: How to best use multithreading?

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 443
  • View blog
  • Posts: 792
  • Joined: 08-June 10

Re: How to best use multithreading?

Posted 05 December 2011 - 07:36 AM

View Posthiddenghost, on 03 December 2011 - 08:11 AM, said:

What's the best multi-threading server for python in your opinion?

This question is hella-vague. Are you looking for a multi-threaded webserver? Does it have to be written in Python, or just interoperate with Python?

View Posthiddenghost, on 03 December 2011 - 08:11 AM, said:

How can I resolve multi-user same document editing?(like wikis)

Like a live ajax wiki, or some such shared document.

There are a couple of Python-based wikis: MoinMoin and Zwiki.
Was This Post Helpful? 1
  • +
  • -

#3 hiddenghost  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 36
  • View blog
  • Posts: 599
  • Joined: 15-December 09

Re: How to best use multithreading?

Posted 06 January 2012 - 09:27 PM

View PostMotoma, on 05 December 2011 - 08:36 AM, said:

View Posthiddenghost, on 03 December 2011 - 08:11 AM, said:

What's the best multi-threading server for python in your opinion?

This question is hella-vague. Are you looking for a multi-threaded webserver? Does it have to be written in Python, or just interoperate with Python?


Oh sorry. Well I guess either would be fine. Right now I don't have any requirements that are set in stone.
I'm curious about both.
I guess I'd like to know more about what options there are for a more general server that will just use my scripts and serve the prints they put out.
That would probably be in the inter-operate with Python category.

On the written in Python category I'd have to say that what ever ideas other people have about what's good is good knowledge for me to have.

I suppose I was being vague on purpose because my question was more generally about what any one might use for their multi-threaded Python served websites.

Perhaps my question should have been phrased as: "In your opinion what's the best method to accomplish writing multi-threaded Python web applications?"
Was This Post Helpful? 0
  • +
  • -

#4 hiddenghost  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 36
  • View blog
  • Posts: 599
  • Joined: 15-December 09

Re: How to best use multithreading?

Posted 06 January 2012 - 09:36 PM

View PostMotoma, on 05 December 2011 - 08:36 AM, said:

View Posthiddenghost, on 03 December 2011 - 08:11 AM, said:

How can I resolve multi-user same document editing?(like wikis)

Like a live ajax wiki, or some such shared document.

There are a couple of Python-based wikis: MoinMoin and Zwiki.


I was wondering about the conflicts themselves. Suppose it's not a wiki I've built, but it's still for multiuser same document editing.
Was This Post Helpful? 0
  • +
  • -

#5 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 443
  • View blog
  • Posts: 792
  • Joined: 08-June 10

Re: How to best use multithreading?

Posted 09 January 2012 - 07:39 AM

Rather than worry about conflict resolution, you could instead concentrate on conflict prevention: implement a locking mechanism when someone edits a document, and prevent others from editing if that file is already locked. Unlock the file when editing is done.
Was This Post Helpful? 1
  • +
  • -

#6 hiddenghost  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 36
  • View blog
  • Posts: 599
  • Joined: 15-December 09

Re: How to best use multithreading?

Posted 09 January 2012 - 10:12 PM

View PostMotoma, on 09 January 2012 - 08:39 AM, said:

Rather than worry about conflict resolution, you could instead concentrate on conflict prevention: implement a locking mechanism when someone edits a document, and prevent others from editing if that file is already locked. Unlock the file when editing is done.


Yeah. That sounds like the best idea.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1