473,797 Members | 3,144 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

thread and portability Unix/Linux

Hi,
I have a Python application that runs under HPUX 11.11 (then unix). It
uses threads :
from threading import Thread
# Class Main
class RunComponent(Th read):

My application should run under Linux (red hat 3 ou 4) and I read that
differences exist between the implementation of threads : on HPUX
11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
think that my Python application should be modified or may be such
differences are hidden by the python interpreter ?
In other terms, do I get some risks on this particular aspect by
porting my application ?
Thanks a lot

PS: If you are aware of other risk of porting, I am interested too.

Mar 7 '07 #1
2 1255
awalter1 wrote:
Hi,
I have a Python application that runs under HPUX 11.11 (then unix). It
uses threads :
from threading import Thread
# Class Main
class RunComponent(Th read):

My application should run under Linux (red hat 3 ou 4) and I read that
differences exist between the implementation of threads : on HPUX
11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
think that my Python application should be modified or may be such
differences are hidden by the python interpreter ?
In other terms, do I get some risks on this particular aspect by
porting my application ?
Thanks a lot

PS: If you are aware of other risk of porting, I am interested too.
The Python threading model abstracts from the underlying OS threading, so
there should be no need to change anything (AFAIK).

j

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ Â*ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

Mar 7 '07 #2
On 7 mar, 21:07, "Joshua J. Kugler" <jos...@eeinter net.comwrote:
awalter1 wrote:
Hi,
I have a Python application that runs under HPUX 11.11 (then unix). It
uses threads :
from threading import Thread
# Class Main
class RunComponent(Th read):
My application should run under Linux (red hat 3 ou 4) and I read that
differences exist between the implementation of threads : on HPUX
11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
think that my Python application should be modified or may be such
differences are hidden by the python interpreter ?
In other terms, do I get some risks on this particular aspect by
porting my application ?
Thanks a lot
PS: If you are aware of other risk of porting, I am interested too.

The Python threading model abstracts from the underlying OS threading, so
there should be no need to change anything (AFAIK).

j

--
Joshua Kugler
Lead System Admin -- Senior Programmerhttp://www.eeinternet. com
PGP Key:http://pgp.mit.edu/ ID 0xDB26D7CE

--
Posted via a free Usenet account fromhttp://www.teranews.co m- Masquer le texte des messages précédents -

- Afficher le texte des messages précédents -
Marvellous !
Thank you

Mar 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
2181
by: Tim Tyler | last post by:
I just ported one of the apps I wrote using PHP 5 under Windows to PHP 4 under unix. I knew I wanted to deploy in this environment - and wrote my code in anticipation of running in the other environment. A brief summary follows: Portability was not too bad. However there were several problems I did not anticipate.
7
1623
by: fabio de francesco | last post by:
Hi, I'm not a professional programmer, but I've been writing C/C++ and Ada programs for a few years on GNU/Linux without ever concerning on standards and portability to other OSs. I've always noted that when I write code I must use lots of platform specific system calls (POSIX and X/OPEN). Often I found myself using threads and concurrent processes with some sort of IPC. Some time I need some socket API. When I just want to open a...
11
1546
by: MJL | last post by:
I am trying to figure out how to make my code as portable as possible. I do not really use much of the STL. I could get by with a linked list of strings. Microsoft does provide an object list and a string list class but then I have to rewrite my code when using Borland or other environments. The other problem is GUIs. I know it is best to separate the functional code from the visual interface code, but that still leaves a lot of work...
3
12331
by: Douwe | last post by:
I'm trying to write a piece of C code that has two threads: The first thread waits for a socket connection. The second thread is in a continues cycle waiting for an period of time (lets say 500 ms) or an incomming socket connection (received from the first thread). At this moment I've created two threads were the first one is already waiting for an incomming socket connection. I've also created a timer with timer_create. My problem is that...
3
2777
by: Walter Dnes (delete the 'z' to get my real address | last post by:
I'm doing some stuff at home that I can't justify doing on work time, mostly to learn C programming. But it might possibly be useful at work. I run linux at home at home and Windows at work. One portability question arises. Given fgets() on a file... linux file with a line with 22 columns of data plus CHR(10), strlen() of the resulting string = 23
93
3687
by: roman ziak | last post by:
I just read couple articles on this group and it keeps amazing me how the portability is used as strong argument for language cleanliness. In my opinion, porting the program (so you just take the source code and recompile) is a myth started 20-30 years ago when world consisted of UNIX systems. Well, world does not consist of UNIX systems anymore, but there are 100s of different systems running in cell-phones, DVD players, game consoles...
22
5074
by: nd02tsk | last post by:
Hello! I have a couple of final ( I hope, for your sake ) questions regarding PostgreSQL. I understand PostgreSQL uses processes rather than threads. I found this statement in the archives: "The developers agree that multiple processes provide more benefits (mostly in stability and robustness) than costs (more
93
4015
by: jacob navia | last post by:
In this group there is a bunch of people that call themselves 'regulars' that insist in something called "portability". Portability for them means the least common denominator. Write your code so that it will compile in all old and broken compilers, preferably in such a fashion that it can be moved with no effort from the embedded system in the coffe machine to the 64 bit processor in your desktop.
239
10340
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my users request are a part of the OpenSource community. Many if not most of those applications strongly require the presence of the GNU compiling suite to work properly. My assumption is that this is due to the author/s creating the applications...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.