Tags "linux" Result

Linux

A client has moved a back-end data file to a Linux machine instead of Windows. It now will only let one user log in at a time and gives some sort of "admin file not found" error. My first thought was permissions to create the LDB file but they swear this is correct. (read/write access for MDB & MDW files, read/write/create access in

it1352 0 2019-06-25

linux pthread_suspend

Looks like linux doesnt implement pthread_suspend and continue, but I really need em. I have tried cond_wait, but it is too slow. The work being threaded mostly executes in 50us but occasionally executes upwards of 500ms. The problem with cond_wait is two-fold. The mutex locking is taking comparable times to the micro second executions and I d

it1352 1 2019-05-09

Linux oddity

Hi Folks, When converting a double to an int, the result is not as I''d expect on Linux: #include <stdio.h> int main(int argc, char **argv) { double val = 0.24; int multiplier = 2000; int result = static_cast<int> (val * multiplier); printf("result = %d (should be 480)\n", result); return 0; } The above code prints 480 on S

it1352 1 2019-06-25

HeapCreate, HeapAlloc in Linux, private allocator for Linux

In Windows, for very demanding applications, a programmer may use HeapCreate, HeapAlloc in order to better manage and control the allocation of memory- speed it up (aka private allocators). What is the equivalent in Linux c programming? Solution If you want to use your own private allocator, then use mmap() to map an amount of memory into your

it1352 0 2019-05-11

How to add path to gcc's search dirs?

command gcc -print-search-dirs returns: install: /usr/lib/gcc/i686-linux-gnu/4.6/ programs: =/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../../i686-linux-gnu/bin/i686-linux-gnu/4.6/:/usr/lib/gcc

it1352 2 2019-05-17

Error `make` erlang after downloading latest binary

I ran ./configure I had a couple errors that documentation couldn't be built because there was no java compiler. I didn't think that was related so I went ahead with make: What is Error 4? oot@marble-pyramid-1:~/download/otp_src_20.0# make MAKE depend make[1]: Entering directory `/root/download/otp_src_20.0/erts/emulator' MAKE generate mak

it1352 0 2020-10-03

android ndk-build error on ubuntu 12.10 32 bit

i have downloaded the latest android ndk r8b on my ubuntu 12.10 beta 2 . i have included the ndk directory in the PATH variable (when i write ndk-b in terminal and hit tab it auto-completes it) . but when i try : cd android-ndk/samples/san-angeles/jni ndk-build i get this error: make: /home/mixpro/Android/android-ndk/toolchains/arm-linux-a

it1352 5 2019-05-07

Install ruby headers with rvm

Travis CI uses RVM to provide Ruby, but it doen't seem to contain the headers: $ find /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/zlib.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/

it1352 0 2020-11-22

Linux Kernel- task_h_load

I'm trying to understand what happens during the load_balance function. I'm checking version 3.14 but I also took a look at version 4.3 since I was told that the mechanism was changed and a bit more clear in this version. in v3.14 the call is from move_tasks in v4.3 the call is from detach_tasks from what I see it is the same function but only

it1352 2 2019-05-10