program to implement the synchronization primitive ).
The hardware source of concurrent programming: interrupt and multi-processor.
1.2. hardware architecture
Three Common and popular computer architectures: (1) single processor and memory (2) shared memory multi-processor (3) distributed memory, including multi-computer and computer network.
1.2.1 single processor architecture
1.2.2. Shared Memory multi-processor
The processor and memory are connected through an interconnected network. Small-
Booting using the fdt blob at 0x18000000 XIP Kernel Image ... OKOK Using Device Tree in place at 18000000, end 1800d14dStarting kernel ...Booting Linux on physical CPU 0x0Linux version 3.10.17-80739-g33597e3-dirty (lilianrong@lenovo) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #3 SMP PREEMPT Wed May 13 00:16:49 CST 2015CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7dCPU: PIPT
Solve the problem that Qualcomm Atheros AR8161 Gigabit Ethernet NIC fails in Linux.
The NIC Of My Dell I2330R-168 integrated computer broke down after upgrading a kernel version.
ifconfig eth0eth0: flags=4163
Now the arch linux is installed, and the kernel is updated to the latest version.
uname -a4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC
However, this problem still exists.
I suddenly thought tha
of ordinary applications, generally in the system State .The system runs applications that communicate with the kernel through system calls. The kernel is also responsible for managing the hardware devices of the system.1.4Linux comparison between the kernel and the traditional kernelSingle CoreFrom the whole is implemented as a single large process. Everyone is in the same address space, and the communication between the cores is trivial. The single module has the characteristics of simplicity
Chapter One introduction to the Linux kernelThe activity of each processor at any point in time must be summed up in the following three things:
Run in user space, execute user process
Runs in kernel space, is in the process context, executes on behalf of a particular process
Runs in kernel space, is in the interrupt context, is independent of any process, and handles a specific interrupt
The difference between the Linux kernel and the traditional UNIX system:
The
scheduling policy for thread 2 is SCHED_RR, in Thread3, Thread 3 is preempted by thread 1 and thread 2. Because thread 1 has a priority greater than thread 2, threads 1 runs ahead of thread 2, but there is a portion of thread 2 running before thread 1. I thought, as long as the priority of the thread is high, will be run first, in fact, this understanding is one-sided, especially in the SMP of the PC will increase its uncertainty. In fact, the no
System Kernel Version: Cat/proc/versionLinux version 2.6.33-cdl ([email protected]) (GCC version 3.4.6) #1 SMP PREEMPT Fri Apr 2 01:04:03 EDT 2010File system: 127 15:50$ BusyBoxBusyBox v1.15.3 (2010-03-05 00:33:26 EST) multi-call binaryCopyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenkoand others. Licensed under GPLv2.See source distribution for full notice.Embedded file System General user p
as:Run in user space, execute user processRuns in kernel space, is in the process context, executes on behalf of a particular processRuns in kernel space, is in the interrupt context, is independent of any process, and handles a specific interruptII. Chapter II1. Get the kernel source codeUsing Git, the code looks like this:git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.gitGit pull # Updates branches to the newest branch of LinuxInstallation: Tar xvjf linux-x.y.z.tar
forget to generate the Grub.cfg file: # Grub-mkconfig-o/boot/grub/grub.cfg# grep ' Set=root '/boot/grub/grub.cfg# BLKID/DEV/SDB1 The GRUB2 now uses a UUID to find the hard disk partition, and the second sentence checks to see if the partition UUID used by the newly generated grub.cfg matches the hard drive. If you forget to generate GRUB.CFG, you can start it again with a CD. Finally, exit the chroot environment, Umount move the hard drive, reboot. The boot CD can be put away. Initial Settings
black-pearl.local (192.168.2.113): Data bytesBytes from 192.168.2.113:icmp_seq=0 ttl=64 time=5.697 ms
Then, deploy your regular SSH key to Raspberry Pi.$ ssh-add$ ssh-keygen-r 192.168.2.113$ Ssh-copy-id pirate@192.168.2.113
Now we can login to Raspberry Pi without the password.$ ssh pirate@192.168.2.113
$ uname-aLinux black-pearl 4.4.15-hypriotos-v7+ #1 SMP preempt Mon 08:46:52 UTC 2016 armv7l gnu/linux
/** * Author:hasen * Reference: Linux device Driver Development Details * Introduction: Android small Novice Linux * device driver Development Learning Journey * Topic: Concurrency and race in Linux device drivers * date:2014-11- 04 */1, concurrency, and race concurrency (concurrency) refers to multiple execution units being executed concurrently and concurrently, while concurrent execution units access to shared resources (global variables on the software, static variables, etc.) can easily lea
, so the creation of a small costBetween processes is a competitive relationship, between threads is a collaborative relationship?The workshop is directly competitive/grab the power of the relationship, competition (different processes are directly competitive relationships, are different programmers write programs run, Thunderbolt preempt other processes of speed, 360 of other processes as the virus to dry dead)A workshop of different assembly line c
The environment is as follows:
$ cat/proc/version
Linux version 4.12.13-1-arch (builduser@foutrelis) (gcc version 7.2.0 (gcc)) #1 SMP preempt Fri S EP 06:36:43 UTC 2017
My printer is a network printer, model HP Pagewide Pro 477DN MFPThe IP address is not said. The assumption is 1.1.1.1:can refer to Wiki:cups
Install cups, Ghostscript, gsfonts, Hpoj, hplip with Pacman-sAnd then
$ sudo systemctl restart
choose their own functions, will not need to remove the part of the kernel, which ensures that the core of the compact, scalable good.
(2) Linux supports symmetric multi-processing (SMP) mechanism
(3) The Linux kernel can preempt the traditional Unix variant, the Linux kernel has the ability to allow priority execution to run in the kernel
(4) Linux kernel to provide services passivelyThe only way it serve
,null);Pthread_join (Ppid3,null);Pthread_join (Ppid2,null);Pthread_join (Ppid1,null);Pthread_attr_destroy (AMP;ATTR2);Pthread_attr_destroy (AMP;ATTR1);return 0;}
The following are the results of one of the program's operations:
sudo./prio_testThe current user is rootSched_otherSched_rrSCHED_RR 1Thread 1Thread 1Thread 1Thread 1Thread 1Thread 1Thread 1Thread 1Thread 1Pthread 1 exitThread 2Thread 2Thread 2Thread 2Thread 2Thread 2Thread 2Thread 2Thread 2Pthread 2 exitThread 3Th
Summary: SuSE12.1 64-bit operating system, MySQL5.7.22 compilation installation, single instanceCompile and install with boost and without boostNote: Kingtry is my host nameFirst, the Environment preparationOperating system: SuSE version 12.1, 64-bitkingtry:~ # uname-alinux Kingtry 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC (187DDE0) x86_64 x86_64 x86 _64 gnu/linuxkingtry:~ # cat/etc/suse-relea
(SMP)
The kernel can preempt (preemptive), allowing the kernel to run tasks with the ability to prioritize execution
Do not differentiate between threads and processes
2. Kernel version numberThe kernel has a version number consisting of four main arrays. such as version number: 2.6.26.1 which,2-Major Version number6-from the version number or the secondary version number26-Revision Number1-St
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.