Can I bind POSIX thread to cpu core?

2009-06-28 Thread Михаил Кипа
I have system with 4 core cpu. How can I bind POSIX thread to the one core? I mean that this thread can be executed on the fixed core. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

pthread_mutexattr_getprioceiling error?

2009-06-13 Thread Михаил Кипа
Next little program: #include #include int main() { pthread_mutexattr_t t; if (pthread_mutexattr_init(&t)) return 1; int i; std::cout << pthread_mutexattr_getprioceiling(&t, &i) << std::endl; } always print 22. It means that pthread_mutexattr_getprioceiling alwa

GNAT on FreeBSD amd64

2009-06-12 Thread Михаил Кипа
I need gnat on FreeBSD 7.2 amd64, but in ports it is only for i386 :(. I have tired to compile cross compiler under linux, and now I can compile my ada programs under linux for FreeBSD, but I can`t compile native amd64 FreeBSD gcc. Can anybody help me with GNAT under amd64 FreeBSD? _