OpenGenus OpenGenus
-
- 教育
Revive the legacy of Computing and celebrate its expertise. Follow our episodes for various Computing ideas, Algorithms and Interview Preparation.
-
Idea of zero copy
What if the kernel itself handles copying from disk to network directly? This would significantly save 2 buffers and the 2 un-necessary context switches between kernel space and user-space.
The concept of copying data from one peripheral to another peripheral by kernel, without switching back to user-process is termed as zero copy.
Learn at this article with code examples.
Audio and content by Vishwajith K -
qsort: Sorting using stdlib.h in C
We have explained how to use qsort that is Sorting using stdlib.h in C. We have presented the use-case using code examples.
qsort function can be used as a tool by programmers who don't care about partitioning algorithm but need best possible performance on their machine. Library for a machine is pre-compiled and so, it may use machine specific optimizations too.
With this episode, follow along the written content and code examples at this article.
Audio & Content by Vishwajith K