The Lounge What is on Your Mind? Similar Threads: More UNIX and Linux Forum Topics You Might Find Helpful Update Post 303021550 by Neo on Sunday 12th of August 2018 12:43:41 PM
Similar Threads: More UNIX and Linux Forum Topics You Might Find Helpful Update

Today I change the DB and the PHP code and rebuilt the database for similar threads at the end of each post, increasing from a max of 5 to a max of 10 similar threads per post:

More UNIX and Linux Forum Topics You Might Find Helpful

It was quite easy to do:

1. Increased the max size of the similar field in the thread DB from 55 to a 120 varchar.

2. Changed a fetch_similar_threads($threadtitle, $threadid = 0) DB PHP query from LIMIT 5 to LIMIT 10.

3. Rebuild the entire thread table of all (currently 280K) threads.

This User Gave Thanks to Neo For This Post:
Test Your Knowledge in Computers #450
Difficulty: Medium
In 2016, the Linux Mint website was compromised by unknown hackers, who briefly replaced download links for a version of Linux Mint with a modified version that contained malware.
True or False?

4 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Similar Threads - a new vB3 feature for UNIX.COM

Note the new feature on UNIX.COM, many thread at the bottom of the page have a new feature: Similiar Threads Here is an example on one of Perderabo's posts: Kudos to the vB folks for this built-in feature!! Neo (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

Forum Update: Disabled Home Page Forum Statistics for Guests (Not Registered)

Just a quick update; to speed up the forums, I have disabled the forum statistics on the home page for non registered users. No changes for registered users. (0 Replies)
Discussion started by: Neo
0 Replies

3. What is on Your Mind?

Forum Update New Steps for

Dear Everyone, Thank you for all the great comments, feedback and patience during our recent modernization efforts at Now, I need to decide where to go next, as we move into the next phase. Some of the ideas I have are: Make the UserCP experience and all those non-public... (6 Replies)
Discussion started by: Neo
6 Replies

4. What is on Your Mind?

Similar Threads Redesign for

Hello. I have redesigned our "similar threads" for a more "clean style" in both the desktop view and the mobile view for the forum "show thread". The new design is a simple straight-forward use of div elements and all the legacy table elements have been removed. The result is a "clean"... (7 Replies)
Discussion started by: Neo
7 Replies

pthread_kill_other_threads_np - terminate all other threads in process SYNOPSIS
#include <pthread.h> void pthread_kill_other_threads_np(void); DESCRIPTION
pthread_kill_other_threads_np() only has an effect in the LinuxThreads threading implementation. On that implementation, calling this function causes the immediate termination of all threads in the application, except the calling thread. The cancellation state and cancel- lation type of the to-be-terminated threads are ignored, and the cleanup handlers are not called in those threads. CONFORMING TO
This function is a nonstandard GNU extension; hence the suffix "_np" (nonportable) in the name. NOTES
pthread_kill_other_threads_np() is intended to be called just before a thread calls execve(2) or a similar function. This function is designed to address a limitation in the obsolete LinuxThreads implementation whereby the other threads of an application are not automati- cally terminated (as POSIX.1-2001 requires) during execve(2). In the NPTL threading implementation, pthread_kill_other_threads_np() exists, but does nothing. (Nothing needs to be done, because the implementation does the right thing during an execve(2).) SEE ALSO
execve(2), pthread_cancel(3), pthread_setcancelstate(3), pthread_setcanceltype(3), pthreads(7) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at Linux 2010-09-09 PTHREAD_KILL_OTHER_THREADS_NP(3)

Featured Tech Videos

All times are GMT -4. The time now is 02:07 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy