Score:0

USB device being accessed by two processes with same name

cn flag
SEU

I have a USB serial device and I am working using someone's code. Does the output below indicates a single process or two processes accessing the same USB device?

pi2@rpi2:~ $ sudo lsof | grep /dev/ttyACM0
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
  Output information may be incomplete.
progA11    523                       pi2    3u      CHR      166,0      0t0        414 /dev/ttyACM0
progA11    523  564 progA11          pi2    3u      CHR      166,0      0t0        414 /dev/ttyACM0

If yes, I am surprised that this is possible - my understanding was that accessing the same serial device is not possible (other than some special workarounds)

hr flag
I *think* it's showing a single process, consisting of a single task (thread) - but imho the documentation around this is far from clear. If you hadn't grepped off the lsof header, you'd have seen that 523 is the PID and 564 is the TID, while the TASKCMD is the same as the COMMAND
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.