Re: General Linux c programming questions



je writes:

example application logic, and another /several? for I/O). I wonder if
I should use Processes or PThreads (or whatelse) for this. I don't

On Linux both processes and threads are very lightweight. The only difference is that each process has its own separate address space, while threads share a common.

have Linux programming experience, but experience in programming the
controller in c, and Windows programming experience. I know Windows
multithreading programming.

Windows forces you to either uses a threaded model or an event driven model, because Windows processes are monstrous heavyweights. Linux process overhead is only a fraction of what it is under Windows. Application designs which naturally fit a multi-process model better can be directly implemented, as such, instead of having them shoehorned into a multi-threaded or an event-driven model.

Also I am looking for libraries for socket programming, and for
CANopen. I have heard that the CANbus is treated as a socket nowadays,
and that there is something called CANfestival.

If by sockets you are referring to networking sockets, no special libraries are required. Socket API is included in the standard C library.


Attachment: pgpDjDgmMbmYl.pgp
Description: PGP signature



Relevant Pages

  • Re: recv blocks although socket is ready
    ... Because this is a cross plattform application for AIX, Darwin, FreeBSD, ... IRIX, IRIX64, Linux, OSF1, SunOS and Windows. ... Running the same app on the same hardware under Linux ... frequently when there is some UDP traffic on another socket. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Where do I start?
    ... > I am a newcomer to Linux development, ... > the database or server scripts into the served html pages. ... Well how would you do these tasks on Windows??? ... & 2) Just like on windows, use socket calls. ...
    (comp.os.linux.development.apps)
  • RE: odd perl & linux socket query problem.....
    ... > use Socket; ... > LINE I'M HAVING PROBLEMS WITH IN LINUX BEING SENT ... "\x01\x01\x01" to a my windows machine through a socket, ... perldoc perldata ...
    (perl.beginners)
  • Re: A C unix server with a windows client
    ... i have written i simple C server with Socket under linux. ... problem with a unix client, but if the client is written in C under ... I believe that sockets under Windows are significantly different from ...
    (comp.lang.c)
  • Re: Future of IT in Lebanon
    ... working knowledge of Indian programmers DNA, nor of their intuitive Java ... > So Longhorn is not an experiment and Linux is an experiment? ... another chapter in the Windows story, and the Microsoft marketing machine is ... > application opens, Check the about, it says Microsoft Visual Basic 6.3. ...
    (soc.culture.lebanon)

Loading