Re: General Linux c programming questions
- From: Sam <sam@xxxxxxxxxxxxxx>
- Date: Fri, 20 Feb 2009 06:07:57 -0600
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
- Follow-Ups:
- Re: General Linux c programming questions
- From: White Spirit
- Re: General Linux c programming questions
- References:
- Prev by Date: Re: creating a user with only read permissions on all files
- Next by Date: Re: Hardware diagnostics
- Previous by thread: General Linux c programming questions
- Next by thread: Re: General Linux c programming questions
- Index(es):
Relevant Pages
|
Loading