I have 开发者_Python百科never understood semaphores well enough. Every time, I venture to understand them, something pops up, which I don\'t understand.
I understand that a user can own a process and each process has an address space (which contains valid memory locations, this process can reference). I know that a process can call a system call and p
I want to write a program in assembly language to read primary partitions of a hard disk. I Googled a lot last several days and I found that maybe int 13h (ah = 42h) is for me. But I failed at the beg
I have large C code base for a micro-controller. I am working开发者_运维知识库 on a task to check if all global variables are thread-safe or not.
My program goes through a loop like this: ... while(1){ read(sockfd,buf,sizeof(buf)); ... } 开发者_StackOverflowThe read function blocks when it is waiting for input, which happens to be from a soc
I am reading Operating System Concepts (Silberschatz,Galvin,Gagne), 6th edition, chapter 20. I understand that Linux kernel code is non preemptible (before 2.6 version). But it can be interrupted by h
I am programming PIC18F4520, and using picos18 for multitasking. I need to control buttons with PORTB. I am using interrupts, b开发者_JS百科ut I am facing a problem.
I receive data from some device via socket-module. But after some time the device stops sending packages.
I have following code try{ sleep(500); }catch(InterruptedException e){} Is the Interrup开发者_开发知识库tedException thrown when the thread has finished sleeping or when interrupt method is called
I know that linux does nested interrupts where one interrupt can \"preempt\" another interrupt, but what about 开发者_StackOverflow社区with other tasks.