Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged C

0 votes
388 views
1 answer
    I have been looking through this fantastic article: http://blogs.zynaptiq.com/bernsee/pitch-shifting-using-the-ft/ ... scratch, step by step? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I am trying to understand how CPU cache is operating. Lets say we have this configuration (as an example). ... I got something wrong. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
331 views
1 answer
    A question was asked to me today and I do not believe it is possible, but I could be wrong or am over ... without using some form of iteration. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
640 views
1 answer
    An intern who works with me showed me an exam he had taken in computer science about endianness issues. There was a ... ask : who is right here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    What is the difference between stdint.h and inttypes.h? If none of them is used, uint64_t is not recognized but ... them it is a defined type. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
340 views
1 answer
    A global variable's scope is in all the files, while a static global variable's scope is just the file ... global variables stored in memory? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
459 views
1 answer
    int: The 32-bit int data type can hold integer values in the range of ?2,147,483,648 to 2,147,483,647. You may ... , O.o. I'm a bit confused. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
438 views
1 answer
    I would like to know exactly how the execution of asynchronous signal handlers works on Linux. First, I am unclear ... used? How does it work? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    glibc provides backtrace() and backtrace_symbols() to get the stack trace of a running program. But for this ... for backtrace_symbols to work ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I have a question about C concurrency programming. In the pthread library, the prototype of pthread_join is int ... a difference in type? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
439 views
1 answer
    I am new to GDB, so I have some questions: How can I look at content of the stack? Example: to see ... an error. Platform: Linux and GDB See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
615 views
1 answer
    I'm learning pthread and wait conditions. As far as I can tell a typical waiting thread is like this: ... *one* thread pthread_mutex_unlock(&m); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
800 views
1 answer
    I have been struggling a bit to get make to compile only the files that have been edited. However I didn't ... a_functions.o main.o -o program1 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
336 views
1 answer
    When I'm writing C - code I solely use an editor and gcc. I was wondering if anyone could suggest a good ... . Does anybody know a good tool? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
365 views
1 answer
    I want to create a program that will simulate an out-of-memory (OOM) situation on a Unix server. I created ... ) with no swap and virtualized. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
665 views
1 answer
    Want to use __ DATE __ and __ TIME __ as integer for giving automated version to my code in compile time. ... get-the-marco-name-not-its-value See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
420 views
1 answer
    The standard way would be the following: if (ptrace(PTRACE_TRACEME, 0, NULL, 0) == -1) printf("traced! ") ... principle of the thing :)) Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
486 views
1 answer
    What is the difference between semaphores and mutex provided by pthread library ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    TL;DR: If the Linux kernel loses a buffered I/O write, is there any way for the application to find out? I ... its writes had failed. Not fun. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
363 views
1 answer
    In many programs and man pages of Linux, I have seen code using fork(). Why do we need to use fork() and what is its purpose? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
554 views
1 answer
    I'm trying to detect the compiler used to compile my source code. I can easily find predefined macros to ... is currently compiling my code ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
501 views
1 answer
    I'm currently writing a little program but I keep getting this error when compiling error: empty character constant ... way to represent it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    To prevent false sharing, I want to align each element of an array to a cache line. So first I need to know ... 63 is aligned to a cache line. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
459 views
1 answer
    I was asked this question during an interview. What they wanted to know was when the user calls malloc(4) ... help would be greatly appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
401 views
1 answer
    Should I put the includes in the header file or the source file? If the header file contains the include statements ... in my source file only? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    What is the difference between read() and recv(), and between send() and write() in socket programming ... , speed and other behaviors? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    I have recently started to learn C and I am taking a class with C as the subject. I'm currently ... across different OSes and computers. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
368 views
1 answer
    From epoll's man page: epoll is a variant of poll(2) that can be used either as an edge-triggered or a ... why it is necessary in the example. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...