Programming in linux

Source: Internet
Author: User
For more information about linux programming-general Linux technology-Linux programming and kernel, see the following. Although it is based on open source and easy to write in simple programs, sometimes it is really a headache, and Microsoft's. Net or MFC is missed.

First, the standards are not uniform. Recently I was writing a server program based on the thread pool and used semaphore. There is still the unknown semaphore in mmap. The debugging was very pleasant, so I was happy to distribute the program to various servers. I didn't expect to be depressed when I installed the first server. I found that the process would always be blocked on sem_wait. After a survey, I realized that the environment I developed was FC6 (with the 2.6 kernel). people support the entire Posix IPC, and the results were distributed to the server mainly based on Rhel3 or Rh7, the kernel is very old (it is not a problem, mainly because posix is not supported when the release version is compiled). The Posix ipc function I use is not supported. No way, I had to rewrite it. Now I use System V's semaphore, which is more complicated than Posix. Posix is the standard of tomorrow, but System V is still relatively old and widely supported. It is no problem after writing this article. This is only on the linux platform. We haven't mentioned the stream of solaris and bsd yet. Now we understand why APUE introduced the differences between various linux/unix versions as soon as it came up.

Then the library version is so picky that the program I wrote should be deployed on more than 20 servers in the lab. This project is very large, because we need to first install the Library (such as Xercesc) to each machine, then copy the source code, and then compile it. We can only write scripts to do this, but it is still very troublesome, because there are still many accidents. Can't I copy a binary program? No. There are various Release versions and glibc versions. If you copy binary files directly, it would be nice to have 6 or 7 of the 20 machines. Imagine that all these servers are Windows 2003. Distribution of binary directly is a matter of course, and distribution of source code and re-compilation are the same.

There are also documents that I have been writing in linux. What I can see is that man page is added with some google stuff. Sometimes I really enjoy it when I look at MSDN when I write a program in win... Man page is not a plain text. There are various places in it that let you see a certain person, but there is no convenient link to the past method, which affects programming mood.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.