Linux is a popular, open source operating system kernel. Linus Torvalds started development of the kernel in 1991.

learn more… | top users | synonyms

1
vote
1answer
48 views

Driving Linux input events from serial device

I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my ...
-2
votes
1answer
58 views

Linux equivalent to Visual Studio “Debug -> Attach To Process”? [on hold]

I work in a team of .Net web developers. One of my colleagues mentioned that in Linux there is nothing like the feature in Visual Studio where you can set debugging breakpoints in server code, then ...
1
vote
3answers
298 views

Do I have to fork a server program as an “C” child process in order for correct interprocess communication to take place?

I would like to implement interprocess communication between an Ubuntu Linux 15.10 mono 4.1.2 C# recorder client and Ubuntu Linux 15.10 mono 4.1.2 C# video server using a C++ mutex class and C++ ...
0
votes
0answers
21 views

using pthread_cond_broadcast with no mutex or waiting thread?

Assuming some pthread_cond_t condvar; properly initialized with pthread_cond_init am I allowed to pthread_cond_broadcast it without any mutex locked and thread blocked with pthread_cond_timedwait on ...
2
votes
0answers
141 views

Cross compiling Linux containers for embedded devices

I have recently been exposed to Docker and found it to be an excellent tool for making production deployments very less risky that what I was used to (coming from an embedded world, embedded as "Linux ...
4
votes
1answer
141 views

Evaluating concurrent application design approaches on Linux

Working on relatively low-speed hardware, I need to grab a snapshot of a rapidly changing datastream and then post-process the snapshot data and save it to disk. I need help with designing the ...
18
votes
10answers
13k views

Should we choose Java over C# for a new project? [duplicate]

We have a team of .NET developers (C#) with a range of experience from 2 to 6 years. Over the last few years we have been developing Silverlight, ASP.NET MVC, and WPF applications. However, there is a ...
7
votes
3answers
3k views

Low level Linux graphics

For educational purposes, I'd like to write an application on a Linux environment that can process keyboard events and draw graphics without huge dependencies like X or SDL. I presume that this must ...
-1
votes
0answers
19 views

Control music playback from python or terminal

As part of a larger project, I have been working on a program that will take a string, search a directory and sub directories for a song file that matches, and play it. I need the program to continue ...
2
votes
2answers
80 views

Multiple windows

A while back I got into a discussion with a classmate about whether our application should use multiple JFrames, or windows. I'm a linux-user, and said yes. He's a windows-user, and said no. When ...
3
votes
1answer
85 views

How do you manage your OpenCL source?

I am having a hard time deciding how I should manage my OpenCL source code so that my program can compile it at runtime. There seem to be two many strategies. You can create them in you C source as ...
7
votes
3answers
233 views

What paradigm to use when determining shell script vs a “proper” programming language?

For a while now, I have been automating tasks by writing shell scripts in bash. These have gradually become more and more complicated, and I am now finding that bash scripts are a little too simple ...
1
vote
1answer
58 views

How to uncouple and reuse persistence logic, user interface logic and business logic amongs embedded software projects

I have been working in embedded devices business more than 5 years as a software engineer. Most of the times our hardware manufacturers provide a Software Development Kit for their reference boards. ...
18
votes
3answers
637 views

What are the reasons for why a Java/Linux stack fails to be “real time”?

I have often heard developers mention that Java can't "do Real Time", meaning a Java app running on Linux cannot meet the requirements of a deterministic real-time system, such as something running on ...
6
votes
4answers
2k views

Is there much difference between X86 Assembly language on Windows and Linux?

I'm a complete beginner at Assembly, and my aim is to learn as much as I can to do with Assembly to one day I can reach expert level (I know I'm way off right now, but you never know). My only problem ...
4
votes
4answers
369 views

Is it true that calling _exit() instead of exit() won't prevent static destructors from being called?

On comp.lang.c++.moderated@googlegroups.com, Greg Herlihy posted the following extern "C" function: extern "C" { int func() { wchar_t memoryName[256]; wchar_t mutexName[256]; ...
0
votes
1answer
565 views

Reading a character from a file stream in c++ (AKA: Why no C++ standard equivalent of old conio.h)?

This is a question of about design decisions. I find that there are so many different things I work on where reading a _kbhit() is amazingly useful but I can't find (read: there isn't) any ...
3
votes
3answers
207 views

Read data from a device through usb port at high frequency

I need to know if I can get acceleration data from an IMU at 500Hz via USB. I've been going through the code that the manufacturer provides and trying to improve it. Right now I cannot go faster ...
1
vote
2answers
180 views

What does “Linux Ready” mean in the context of a project written in Swift?

There are few GitHub repositories written in Swift that are presented to be "Linux Ready". The Zewo organization has several repositories identified as "Linux Ready". What, exactly, does this mean?
1
vote
2answers
450 views

Strategy for creating a websocket relay? [closed]

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
11
votes
7answers
10k views

How to get started in opensource projects and programs [duplicate]

I am interested in starting to learn how to contribute to open source projects and Linux in general. I am a first year B.Sc. Computer Science student this year and we use c++ as our main programming ...
0
votes
1answer
52 views

Overwriting a C system after exec? [closed]

So I used wrap to override the malloc call in my program, I didn't think that if I exec'd another it would work, and it didn't. I figure this is because it wasn't linked with my program. How could I ...
0
votes
0answers
22 views

Monitoring interfaces and subscribing to multicast on them

How can a program enumerate the available IP interfaces, and monitor changes in them, to subscribe to and send IP multicasts on all of them? I ask because I am troubleshooting a problem with the ...
2
votes
2answers
553 views

Difference between mutex in windows and linux

Is that correct that a mutex object in Linux cannot be used for cross process synchronization as opposed to its Windows counterpart? If that is true - what was the idea to limit mutex synchronisation ...
-3
votes
1answer
67 views

dma allocation in kernel 4g patch theory [closed]

I was reading about that that old patch. The summary of that link is to create a 4Gb kernel space, instead of 1Gb by default. Since many dma capable devices can only access 32 bit addresses or 4Gb, ...
0
votes
0answers
37 views

Best way to update driver data from userspace

I have a userspace application which interacts with a kernel-space driver in a Linux environment. The driver, in this case, is an LED driver. In typical *nix fashion, the driver exposes a file in ...
2
votes
1answer
171 views

Best practices for a daemon that forks and becomes user [closed]

I want to write a small daemon in python under Linux that accepts connections and authenticates the user (details for this don't matter) and then forks a child for the connection and becomes the user. ...
0
votes
1answer
580 views

develop crossplatform GUI based DESKTOP application with HTML5/CSS [closed]

I'm experienced wed developer doing stuff for web for a several years. But now my customer need to build crossplatform ETL tool which he want to ship to his clients. And will be much easier if it will ...
0
votes
0answers
528 views

Best way to signal all child processes to terminate using C

I have been assigned the task of designing a simple web server using C in my UNIX & C class. The webserver listens and forks when a successful connection is made so that multiple clients may be ...
2
votes
2answers
163 views

Need Advice on PHP Search Functionality

I'm coding a Linux/PHP site for an organization. The site has two views, activated by a login $_SESSION variable indicating whether one is logged in as a member or not. I need to provide search ...
-3
votes
2answers
403 views

Best x86 processor(computer) to learn computer architecture and assembly [closed]

I'm planning to build a computer as a hobby from scratch, with the least basic hardware possible in functionality so I can learn the basics of computer architecture and assembly language. I already ...
13
votes
7answers
2k views

Emacs and “self-reinforcing performance”

In short, my question for you hardcore Emacs users is this: have you achieved this "self-reinforcing performance" Steve Yegge talks about? Emacs is self-hosting: writing things in it makes the ...
0
votes
0answers
69 views

A callback for when data is received?

So, my understanding is that the Kernel could receive TCP at any time, and that generally a C program asks the Kernel synchronously/asynchronously if it has data available. Would it be possible for a ...
1
vote
1answer
204 views

What does using pointer in Linux kernel imply?

So far I was under the perspective that while working in the kernel code, working with memory implies working with long integers and not pointers because dereferencing pointers shouldn't be done in ...
3
votes
1answer
270 views

What is the motivation for casting a pointer into a integer?

I'm doing some changes in the Linux kernel code and have noticed a pointer being cast into integer. Check out buf below (full code): snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream ...
24
votes
5answers
4k views

Why don't Windows/Linux use relational Databases (RDBMS)?

Why don't Windows/Linux use relational databases (RDBMS)? I know they use file systems to store all data but don't you think it is more efficient to use databases like we use in web sites/web apps? ...
1
vote
2answers
252 views

Is Red Star OS released under the GPL? [closed]

According to Wikipedia, Red Star OS is is a North Korean Linux-based operating system Does that mean it's covered by the GPL, or are there exceptions?
1
vote
3answers
167 views

Reading file during write on linux

As I understand, when a file is being written, the process writing to the file obtains an exclusive lock. So other processes cannot access this file for read. With the above knowledge, I'm unable ...
3
votes
2answers
439 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
2
votes
1answer
167 views

Should one use many small configuration files for script or a single large configuration file?

I have a script which starts from cron with regular interval and sources in around 10 variables. Should I keep those 10 variables in one configuration file in file system or is it a better practice to ...
7
votes
1answer
1k views

“Read” a file without using a file pointer

I was asked this question in an interview. I'm somehow supposed to "read" a file into my C program as input without using a file pointer (including "f" functions, e.g. fgets, fscanf etc.). I'm also ...
-3
votes
3answers
396 views

Why should PHP developer use/learn VI editor? [closed]

Why should PHP developer use/learn VI editor ? I mean there are 10 most amazing editors like PHPStorm, Netbeans which increases developers productivity. Lets just consider PHPStorm. I never got ...
1
vote
1answer
135 views

How come the NSA could release SELinux as GPL when all US Gov work must be Public Domain?

I'm not sure if this is a good question for this site, but it does deal with the things to do with working as programmer. SELinux is a security enhanced version of Linux, and was initially developed ...
0
votes
0answers
63 views

How to package a SDL2-based Linux app?

I've written a small toy application using SDL2. I want to distribute it the most user-friendly way, for Linux. I should make a deb package, but then I should also make packages for other distros, ...
-1
votes
1answer
280 views

Are ANSI* Escape Sequences Proper For Coloring Text in Terminal(Linux)?

I just switched back to Linux after a few years of Windows use and am wondering if ANSI Escape Sequences are okay for coloring text. I ask because the way I did it on windows isn't capable of crossing ...
0
votes
3answers
134 views

What is the explication for the difference execution time for the same instruction?

As you know when we run instruction in our code like long a = b; we will not have the same ticks each to be executed. first exeution it take 2ticks; second exeution it take 3ticks; third exeution it ...
2
votes
1answer
119 views

Library OSes vs Unikernels

My understanding of a Hypervisor & Virtual Machines is that the hypervisor is a program (either running on top of a host OS, or running bare metal as the host) that leverages binary-compatible ...
2
votes
2answers
399 views

What are the benefits of a device driver when I can access the I/O registers directly?

I was interested in what modern, C-based, Linux device driver development looked like, and so I took a good gander at this excellent article. I didn't read every single line, but perused the majority ...
1
vote
1answer
136 views

Memory Limit of a Single Program and mmap

If one has a 32 bit machine, a single program cannot address more than 2^32 bytes, or 4 GB. Would making use of mmap() allow one to exceed the 4 GB limit?
5
votes
2answers
600 views

Is bash “finished”? [closed]

Should bash be expected to change in ways that break non-trivial amounts of existing scripts at some point in the (near/<5y) future? How much change has it gone trough in the last ten years ...