c Make two progress bars, use threat to do it, and the two progress bars do not interfere.

Updated on technology 2024-02-08
11 answers
  1. Anonymous users2024-02-05

    lock is the most commonly used synchronization method in C, and the format is lock(objectA).

    Lock(objectA) may seem simple, but it actually has three meanings, which are essential for using it appropriately:

    1. Is objecta locked? If not, I'll lock it, otherwise I'll wait until objectA is released.

    2. After lock, other threads cannot call codeb or use objecta during the execution of codeb.

    3. Release objectA after the codeb is executed, and the codeb can be accessed by other threads.

  2. Anonymous users2024-02-04

    Don't put up big theories, and the big rights and wrongs of theories go to MSDN to study.

    lock is to lock the ** segment in {} to prevent multiple threads from running the ** segment at the same time.

    Usage: private void do().

    object locker=new object();

    private void dosomething().

    For example, when T1 executes a lock, it will record the memory address of the locker, add it to the lock list, and start to execute the lock segment of the lock. When t2 executes the lock again, the detection finds that the memory address of the locker is in the lock list, so the thread waits. T1 reaches the end of the lock after executing the funlog, and deletes the locker address from the lock list. T2 detects that Locer is no longer in the lock list, it records the memory address of the locker, adds it to the lock list, and enters the ** section where the lock is executed.

  3. Anonymous users2024-02-03

    lock is mainly used to deal with concurrency problems and lock exclusive objects.

    Lock the current instance: lock(this).

    Lock all instances of this class: lock(typeof([type]))) locks the string, will lock all strings with the same content, it is recommended to use a static string instead of the lock keyword to be concise than monitor, in fact, lock is a wrapper to the enter and exit of monitor.

    Lock is a simple way to synchronize threads, public void function()}, and you can also use monitor, mutex, and readerwriterlock

  4. Anonymous users2024-02-02

    Thislock is based on this, if there is a thread operating the content in {}, then thislock will be occupied, at this time, there are threads that want to access, will queue up, wait for the previous access to be used after the use of the access.

    private object thislock = new object();

    lock (thislock)

  5. Anonymous users2024-02-01

    Is there some software blocking the installation?

    For example, various active defense software (Micropoint, Malware Defender, Edamame's built-in Defense+, ThreatFire...)

    If not, please check.

    1.Whether there is enough space for the drive letter installed.

    2.The computer account you are now logged in to is not authorized to install the software3Have you installed Thunderbolt before,If so,Please close the current installation page,Reinstall Thunderbolt after uninstalling。

  6. Anonymous users2024-01-31

    Does the landlord know?

    That's what happened to me.

    I don't know how to solve it yet.

  7. Anonymous users2024-01-30

    Mine is the same.,And I want to cancel the installation and it really crashes.,I've installed it n times.,The result is like this.,The system has also been reinstalled.,It's useless.。

  8. Anonymous users2024-01-29

    There was an error with the file, and the incomplete program caused the installation and uninstallation to go wrong.

  9. Anonymous users2024-01-28

    I cleaned the registry as well, and reinstalling it is still the same problem. The deletion program also went wrong, do any experts know why?

  10. Anonymous users2024-01-27

    Uninstalled 360 Although the progress bar is a little bit close, but it's done, if the desktop doesn't have an icon, you can go to the folder where you installed it to create one.

  11. Anonymous users2024-01-26

    It seems that I turned off 360 when I installed it, and it is better not to install two antivirus software on one computer.

Related questions
4 answers2024-02-08

for(i=3;i<=ihuffsize[n-1];i++)uint_8s[0]=0;

uint_8s[1]=uint_8[p]; >>>More

25 answers2024-02-08

Most couples choose not to contact each other after they break up. It's not that I'm afraid of the revival of old feelings, but to avoid unnecessary embarrassment, after all, the appearance of the other party will bring back memories of when they were together. Some couples have faded over time after a breakup, and they don't care much about what happened in the past, and they choose to continue to contact, but not too often, and it is inevitable that they will have palpitations. >>>More

19 answers2024-02-08

Write in the click of button1; Then write using system in the main function; >>>More

6 answers2024-02-08

This little poem is concise and full of meaning, and the writing style is very distinctive. The poet skillfully handles the relationship between narrative and lyricism. The first three sentences of the narrative describe the environment, using layers of in-depth and repeated rendering techniques to create an atmosphere, pave the way for the fourth lyricism, highlight the status of the lyrical sentence, and make the lyrical sentence appear particularly vigilant and powerful. >>>More

9 answers2024-02-08

Actually, I think you should know if B is sincere, and the current boys have played with a lot. But when you meet a girl you really like, you will still treat her wholeheartedly. If B is sincere, I think you should be able to feel it. >>>More