Does the implementation of system call matter for the programmer?

  • Thread starter Thread starter Eus
  • Start date Start date
  • Tags Tags
    Matter System
AI Thread Summary
Understanding which library procedures result in system calls is crucial for programmers for several reasons. First, when porting library procedures to different platforms, awareness of the equivalent system calls is necessary to ensure compatibility and functionality. If the target platform lacks certain system calls, programmers must identify which library procedures require modification for successful porting. Additionally, system calls are significantly slower than regular function calls, making it essential to minimize their use in performance-critical applications. Avoiding system calls in time-sensitive operations can lead to more efficient code execution.
Eus
Messages
93
Reaction score
0
Hi Ho!

"To a programmer, a system call looks like any other call to a library procedure. Is it important that a programmer know which library procedures result in system calls? Under what circumstances and why?"

I think it is important for a programmer to know which library procedures result in system calls for the following reasons:

1. when the programmer would like to port the library procedures to another platform, he must be aware whether the platform to which the programmer is going to port the procedures has the equivalent system calls that are needed or not. If not, the programmer must determine what library procedures he should hack so that the programmer can port the procedures successfully.

2. ?

Maybe you have other ideas?

Thank you.

Regards,
Eus
 
Last edited:
Computer science news on Phys.org
One reason is that system calls are really, really slow. Just like you wouldn't want to cache data on the hard drive, you would want to avoid functions with system calls for operations that require speed.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top